include Make.inc
mySRCdir = $(SRCdir)/bin

scalf = $(mflop_l1)

pre=j
nb = 88
dmmobj = $(GMMdir)/ATL_dbig_mm.o $(GMMdir)/ATL_dsmall_mm.o \
         $(GMMdir)/ATL_dsmallK_mm.o
smmobj = $(GMMdir)/ATL_sbig_mm.o $(GMMdir)/ATL_ssmall_mm.o \
         $(GMMdir)/ATL_ssmallK_mm.o
cmmobj = $(GMMdir)/ATL_cbig_mm.o $(GMMdir)/ATL_csmall_mm.o \
         $(GMMdir)/ATL_csmallK_mm.o
zmmobj = $(GMMdir)/ATL_zbig_mm.o $(GMMdir)/ATL_zsmall_mm.o \
         $(GMMdir)/ATL_zsmallK_mm.o

$(SYSdir)/ATL_Xwalltime.o :
	cd $(SYSdir) ; $(MAKE) ATL_Xwalltime.o
xatlas_waitfile : atlas_waitfile.o $(SYSdir)/ATL_Xwalltime.o
	$(XCC) $(XCCFLAGS) -o $@ atlas_waitfile.o $(SYSdir)/ATL_Xwalltime.o
atlas_waitfile.o : $(mySRCdir)/atlas_waitfile.c
	$(XCC) $(XCCFLAGS) -c $(mySRCdir)/atlas_waitfile.c
xatlas_install : xatlas_tee atlas_install.o 
	$(XCC) $(XCCFLAGS) -o $@ atlas_install.o
atlas_install.o : $(mySRCdir)/atlas_install.c
	$(XCC) $(XCCFLAGS) -c $(mySRCdir)/atlas_install.c

xatlas_tee     : atlas_tee.o 
	$(XCC) $(XCCFLAGS) -o $@ atlas_tee.o
atlas_tee.o : $(mySRCdir)/atlas_tee.c
	$(XCC) $(XCCFLAGS) -c $(mySRCdir)/atlas_tee.c
xccobj  : $(mySRCdir)/ccobj.c
	$(XCC) $(XCCFLAGS) -o $@ $(mySRCdir)/ccobj.c -DTOPDIR=$(BLDdir)
xsubstr : $(mySRCdir)/substr.c
	$(XCC) $(XCCFLAGS) -o $@ $(mySRCdir)/substr.c


IBuildRef:
	cd $(BLDdir)/src/blas/reference/level3 ; $(MAKE) $(pre)lib
	cd $(BLDdir)/src/blas/reference/level2 ; $(MAKE) $(pre)lib


IBuildPtlibs:
	- rm -f $(INCAdir)/atlas_pthreads.h
	cd $(BLDdir)/src/auxil/ ; $(MAKE) ptlib
	cd $(BLDdir)/src/pthreads/blas/level3/ ; $(MAKE) lib
	cd $(BLDdir)/src/pthreads/misc/ ; $(MAKE) lib
	cd $(BLDdir)/interfaces/blas/C/src/ ; $(MAKE) ptlib
	- cd $(BLDdir)/interfaces/blas/F77/src/ ; $(MAKE) ptlib

IBuildLibs:
	cd $(BLDdir)/src/auxil ; $(MAKE) lib
	cd $(BLDdir)/src/blas/gemm ; $(MAKE) lib
	cd $(BLDdir)/src/blas/gemv ; $(MAKE) lib
	cd $(BLDdir)/src/blas/ger ; $(MAKE) lib
	cd $(BLDdir)/src/blas/level1 ; $(MAKE) lib
	cd $(BLDdir)/src/blas/level2 ; $(MAKE) lib
	cd $(BLDdir)/src/blas/level3 ; $(MAKE) lib
	cd $(BLDdir)/src/blas/pklevel3 ; $(MAKE) lib
	cd $(BLDdir)/src/blas/reference/level3 ; $(MAKE) lib
	cd $(BLDdir)/src/lapack ; $(MAKE) lib
	cd $(BLDdir)/interfaces/blas/C/src ; $(MAKE) all
	- cd $(BLDdir)/interfaces/blas/F77/src ; $(MAKE) lib
	cd $(BLDdir)/interfaces/lapack/C/src ; $(MAKE) lib
	- cd $(BLDdir)/interfaces/lapack/F77/src ; $(MAKE) lib

IPostTune:
	cd $(L3Tdir) ; $(MAKE) res/atlas_trsmNB.h
	cd $(BLDdir)/src/blas/level3 ; $(MAKE) lib
error_report :
	cd $(BLDdir) ; $(MAKE) error_report

IBozoL1: IBozoL1.grd
$(BLDdir)/ARCHS/BOZOL1 : $(SRCdir)/CONFIG/ARCHS/BOZOL1.tgz
	cd $(BLDdir)/ARCHS ; \
           $(GUNZIP) -c $(SRCdir)/CONFIG/ARCHS/BOZOL1.tgz | tar xvf -
	
IBozoL1.grd : $(BLDdir)/ARCHS/BOZOL1
	$(MAKE) IForceL1 pre=$(pre) defdir=$(BLDdir)/BOZOL1
	touch IBozoL1.grd
IForceL1:
	- cp -f $(defdir)/*_SUMM $(L1Tdir)/res/.

UntarArch: $(BLDdir)/ARCHS/$(ARCH)
$(BLDdir)/ARCHS/$(ARCH): $(SRCdir)/CONFIG/ARCHS/$(ARCH).tgz
	cd $(BLDdir)/ARCHS ; \
           $(GUNZIP) -c $(SRCdir)/CONFIG/ARCHS/$(ARCH).tgz | tar xvf -
IArchDef.grd : $(BLDdir)/ARCHS/$(ARCH)
	cd $(BLDdir)/ARCHS ; \
           $(MAKE) archput
	touch IArchDef.grd
	


IStage1:
	- cd $(AUXdir) ; $(MAKE) -s ATL_buildinfo.o
	cd $(AUXdir) ; $(MAKE) lib
	cd $(TSTdir) ; $(MAKE) lib
	$(MAKE) INSTALL_LOG/L1CacheSize
	$(MAKE) INSTALL_LOG/sMULADD pre=s
	$(MAKE) INSTALL_LOG/dMULADD pre=d

IRunMADef :
	cd $(SYSdir) ; $(MAKE) RunMADef pre=$(pre)

IRunMMDef :
	cd $(MMTdir) ; $(MAKE) RunMMDef pre=$(pre)
	cd $(MMTdir) ; ./xemit_mm  -p $(pre) -R -2
	cd $(MMTdir) ; $(MAKE) install pre=$(pre)
IKillL1 : force_build
	rm -f $(SYSdir)/res/L1CacheSize INSTALL_LOG/L1CacheSize

$(SYSdir)/res/L1CacheSize:
	cd $(SYSdir) ; $(MAKE) res/L1CacheSize

INSTALL_LOG/L1CacheSize : $(SYSdir)/res/L1CacheSize
	cp $(SYSdir)/res/L1CacheSize INSTALL_LOG/.

IL1Override : force_build
	rm -f $(SYSdir)/res/L1CacheSize
	cp $(tnam) $(SYSdir)/res/L1CacheSize
	rm -f $(tnam)

IKillMuladd : force_build
	rm -f $(SYSdir)/res/$(pre)MULADD $(SYSdir)/res/$(pre)muladd* \
              INSTALL_LOG/$(pre)MULADD

$(SYSdir)/res/$(pre)MULADD :
	cd $(SYSdir) ; $(MAKE) res/$(pre)MULADD pre=$(pre) maxlat=6 mflop=200

INSTALL_LOG/$(pre)MULADD :  $(SYSdir)/res/$(pre)MULADD
	cp $(SYSdir)/res/$(pre)MULADD INSTALL_LOG/.

$(INCAdir)atlas_$(pre)sysinfo.h :
	cd $(SYSdir) ; $(MAKE) $(INCAdir)/atlas_$(pre)sysinfo.h

INSTALL_LOG/atlas_$(pre)sysinfo.h : $(INCAdir)/res/atlas_$(pre)sysinfo.h
	cp $(INCAdir)/atlas_$(pre)sysinfo.h INSTALL_LOG/.

IKillMMres: force_build
	rm -f $(MMTdir)/res/* INSTALL_LOG/$(pre)MMRES


Irbob :
	rm -f $(tnam)
	cd $(MMTdir) ; $(MAKE) $(pre)rbob pre=$(pre) muladd=$(muladd) ldc=$(nb) \
                                 nb=$(nb) mu=$(mu) nu=$(nu) lat=$(lat) ku=$(ku)
	cp $(MMTdir)/res/C$(pre)NB$(nb)_$(mu)x$(nu)x$(ku)_$(muladd)-$(lat).mflop $(tnam)
	echo $(muladd) $(lat) $(nb) $(mu) $(nu) $(ku) >> $(tnam)
Icbob :
	rm -f $(tnam)
	cd $(MMTdir) ; $(MAKE) cbob pre=$(pre) muladd=$(muladd) ldc=$(nb) \
                                 nb=$(nb) mu=$(mu) nu=$(nu) lat=$(lat) ku=$(ku)
	cp $(MMTdir)/res/C$(pre)NB$(nb)_$(mu)x$(nu)x$(ku)_$(muladd)-$(lat).mflop $(tnam)
	echo $(muladd) $(lat) $(nb) $(mu) $(nu) $(ku) >> $(tnam)

Imakefch:
	rm -f $(INCAdir)/atlas_$(pre)sysinfo.h
	cp $(tnam) $(INCAdir)/atlas_$(pre)sysinfo.h
	rm -f $(tnam)

INSTALL_LOG/smmstandard : 
	cd $(MMTdir) ; $(MAKE) rready $(sATLres)
	cd $(MMTdir) ; $(MAKE) install pre=s typ=SREAL
	$(MAKE) Irbob tnam=INSTALL_LOG/smmstandard $(sATLres)
INSTALL_LOG/dmmstandard : 
	cd $(MMTdir) ; $(MAKE) rready $(dATLres)
	cd $(MMTdir) ; $(MAKE) install pre=d typ=DREAL
	$(MAKE) Irbob tnam=INSTALL_LOG/dmmstandard $(dATLres)
INSTALL_LOG/cmmstandard : 
	cd $(MMTdir) ; $(MAKE) cready $(cATLres)
	cd $(MMTdir) ; $(MAKE) install pre=c typ=SCPLX
	$(MAKE) Icbob tnam=INSTALL_LOG/cmmstandard $(cATLres)
INSTALL_LOG/zmmstandard : 
	cd $(MMTdir) ; $(MAKE) cready $(zATLres)
	cd $(MMTdir) ; $(MAKE) install pre=z typ=DCPLX
	$(MAKE) Icbob tnam=INSTALL_LOG/zmmstandard $(zATLres)

$(L3Tdir)/res/atlas_$(pre)trsmXover.h:
	cd $(L3Tdir) ; $(MAKE) res/atlas_$(pre)trsmXover.h pre=$(pre)

INSTALL_LOG/atlas_$(pre)trsmXover.h : $(L3Tdir)/res/atlas_$(pre)trsmXover.h
	cp $(INCAdir)/atlas_$(pre)trsmXover.h INSTALL_LOG/.

$(MMTdir)/res/$(pre)bestNN_0x0x0 :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestNN_0x0x0 pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestNN_0x0x0 : $(MMTdir)/res/$(pre)bestNN_0x0x0
	cp $(MMTdir)/res/$(pre)bestNN_0x0x0 INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestNN_0x0x$(nb) :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestNN_0x0x$(nb) pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestNN_0x0x$(nb) : $(MMTdir)/res/$(pre)bestNN_0x0x$(nb)
	cp $(MMTdir)/res/$(pre)bestNN_0x0x$(nb) INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestNN_$(nb)x$(nb)x$(nb) :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestNN_$(nb)x$(nb)x$(nb) pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestNN_$(nb)x$(nb)x$(nb) : $(MMTdir)/res/$(pre)bestNN_$(nb)x$(nb)x$(nb)
	cp $(MMTdir)/res/$(pre)bestNN_$(nb)x$(nb)x$(nb) INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestNT_0x0x0 :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestNT_0x0x0 pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestNT_0x0x0 : $(MMTdir)/res/$(pre)bestNT_0x0x0
	cp $(MMTdir)/res/$(pre)bestNT_0x0x0 INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestNT_0x0x$(nb) :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestNT_0x0x$(nb) pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestNT_0x0x$(nb) : $(MMTdir)/res/$(pre)bestNT_0x0x$(nb)
	cp $(MMTdir)/res/$(pre)bestNT_0x0x$(nb) INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestNT_$(nb)x$(nb)x$(nb) :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestNT_$(nb)x$(nb)x$(nb) pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestNT_$(nb)x$(nb)x$(nb) : $(MMTdir)/res/$(pre)bestNT_$(nb)x$(nb)x$(nb)
	cp $(MMTdir)/res/$(pre)bestNT_$(nb)x$(nb)x$(nb) INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestTN_0x0x0 :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestTN_0x0x0 pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestTN_0x0x0 : $(MMTdir)/res/$(pre)bestTN_0x0x0
	cp $(MMTdir)/res/$(pre)bestTN_0x0x0 INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestTN_0x0x$(nb) :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestTN_0x0x$(nb) pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestTN_0x0x$(nb) : $(MMTdir)/res/$(pre)bestTN_0x0x$(nb)
	cp $(MMTdir)/res/$(pre)bestTN_0x0x$(nb) INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestTN_$(nb)x$(nb)x$(nb) :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestTN_$(nb)x$(nb)x$(nb) pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestTN_$(nb)x$(nb)x$(nb) : $(MMTdir)/res/$(pre)bestTN_$(nb)x$(nb)x$(nb)
	cp $(MMTdir)/res/$(pre)bestTN_$(nb)x$(nb)x$(nb) INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestTT_0x0x0 :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestTT_0x0x0 pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestTT_0x0x0 : $(MMTdir)/res/$(pre)bestTT_0x0x0
	cp $(MMTdir)/res/$(pre)bestTT_0x0x0 INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestTT_0x0x$(nb) :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestTT_0x0x$(nb) pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestTT_0x0x$(nb) : $(MMTdir)/res/$(pre)bestTT_0x0x$(nb)
	cp $(MMTdir)/res/$(pre)bestTT_0x0x$(nb) INSTALL_LOG/.
$(MMTdir)/res/$(pre)bestTT_$(nb)x$(nb)x$(nb) :
	cd $(MMTdir) ; $(MAKE) res/$(pre)bestTT_$(nb)x$(nb)x$(nb) pre=$(pre) bnb=$(nb)
INSTALL_LOG/$(pre)bestTT_$(nb)x$(nb)x$(nb) : $(MMTdir)/res/$(pre)bestTT_$(nb)x$(nb)x$(nb)
	cp $(MMTdir)/res/$(pre)bestTT_$(nb)x$(nb)x$(nb) INSTALL_LOG/.

$(R1Tdir)/res/$(pre)R1RES : force_build
	cd $(R1Tdir) ; $(MAKE) res/$(pre)R1RES pre=$(pre)
INSTALL_LOG/$(pre)R1RES : $(R1Tdir)/res/$(pre)R1RES
	cp $(R1Tdir)/res/$(pre)R1RES INSTALL_LOG/.

$(MVTdir)/res/$(pre)MVRES : force_build
	cd $(MVTdir) ; $(MAKE) res/$(pre)MVRES pre=$(pre)
INSTALL_LOG/$(pre)MVRES : $(MVTdir)/res/$(pre)MVRES
	cp $(MVTdir)/res/$(pre)MVRES INSTALL_LOG/.


$(MMTdir)/res/$(pre)Xover.h :
	cd $(MMTdir) ; $(MAKE) res/$(pre)Xover.h pre=$(pre) nb=$(nb)
INSTALL_LOG/$(pre)Xover.h : $(MMTdir)/res/$(pre)Xover.h
	cp $(MMTdir)/res/$(pre)Xover.h INSTALL_LOG/.
$(MMTdir)/res/$(pre)NCNB :
	cd $(MMTdir) ; $(MAKE) res/$(pre)NCNB pre=$(pre) nb=$(nb)
INSTALL_LOG/$(pre)NCNB : $(MMTdir)/res/$(pre)NCNB
	cp $(MMTdir)/res/$(pre)NCNB INSTALL_LOG/.
$(MMTdir)/res/$(pre)MMRES :
	cd $(MMTdir) ; $(MAKE) res/$(pre)MMRES pre=$(pre) nb=$(nb)
INSTALL_LOG/$(pre)MMRES : $(MMTdir)/res/$(pre)MMRES
	cp $(MMTdir)/res/$(pre)MMRES INSTALL_LOG/.

MMinstall :
	cd $(MMTdir) ; $(MAKE) $(pre)install
$(MMTdir)/res/atlas_cachedge.h :
	cd $(MMTdir) ; $(MAKE) res/atlas_cacheedge.h pre=$(pre)
INSTALL_LOG/atlas_cacheedge.h : $(MMTdir)/res/atlas_cachedge.h
	cp $(MMTdir)/res/atlas_cacheedge.h $(INCAdir)/.
	cp $(MMTdir)/res/atlas_cacheedge.h INSTALL_LOG/.
$(MMTdir)/res/atlas_zdNKB.h :
	cd $(MMTdir) ; $(MAKE) res/atlas_zdNKB.h
$(MMTdir)/res/atlas_csNKB.h :
	cd $(MMTdir) ; $(MAKE) res/atlas_csNKB.h
INSTALL_LOG/atlas_zdNKB.h : $(MMTdir)/res/atlas_zdNKB.h
	cp $(MMTdir)/res/atlas_zdNKB.h $(INCAdir)/.
	cp $(MMTdir)/res/atlas_zdNKB.h INSTALL_LOG/.
INSTALL_LOG/atlas_csNKB.h : $(MMTdir)/res/atlas_csNKB.h
	cp $(MMTdir)/res/atlas_csNKB.h $(INCAdir)/.
	cp $(MMTdir)/res/atlas_csNKB.h INSTALL_LOG/.

Il3lib : force_build
	cd $(L3Bdir) ; $(MAKE) $(pre)lib

auxlib : force_build
	cd $(AUXdir) ; $(MAKE) lib
auxlib_pt : force_build
	cd $(AUXdir) ; $(MAKE) ptlib

xprint_buildinfo : $(mySRCdir)/print_buildinfo.c
	$(ICC) $(ICCFLAGS) -o $@ $(mySRCdir)/print_buildinfo.c $(ATLASlib)
xdlp1000: ftime00.o dlp1000.o dlapack dl3lib dl2lib dl1lib dcblas dfblas
	$(FLINKER) $(FLINKFLAGS) -o $@ dlp1000.o ftime00.o \
	$(LAPACKlib) $(CBLASlib) $(F77BLASlib) $(ATLASlib) $(LIBS)
ftime00.o : $(mySRCdir)/ftime00.c
	$(ICC) -o $@ -c $(ICCFLAGS) $(mySRCdir)/ftime00.c
dlp1000.o : $(mySRCdir)/dlp1000.f
	$(F77) -o $@ -c $(FFLAGS) $(mySRCdir)/dlp1000.f

sanity_test: 
	rm -f sanity.out
	$(MAKE) ssanity_test dsanity_test csanity_test zsanity_test
ptsanity_test:
	rm -f ptsanity.out
	$(MAKE) ssanity_test_pt dsanity_test_pt csanity_test_pt zsanity_test_pt

shared: shared.grd
ptshared: ptshared.grd
ptshared.grd :
	cd $(LIBdir) : make ptshared
shared.grd :
	cd $(LIBdir) ; make shared
killshared:
	rm -f $(LIBdir)/libatlas.so $(LIBdir)/libcatlas.so \
              shared.grd ptshared.grd

xsl1blastst_pt_dyn : sl1blastst_pt.o sl1lib_pt ststlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl1blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsl2blastst_pt_dyn : sl2blastst_pt.o sl2lib_pt ststlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl2blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsl3blastst_pt_dyn : $(INCAdir)/atlas_type.h sl3blastst_pt.o \
                   ststlib_pt sl3lib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl3blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsinv_all_pt_dyn : xsinvtst_pt xsinvtstF_pt \
                   xsinvtst_sys_pt xsinvtstF_sys_pt PTshared

xsinvtst_pt_dyn : sinvtst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt PTshared
	rm -f sinvtst_pt.o
	$(MAKE) sinvtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsinvtstF_pt_dyn : slapack ststlib_pt sl3lib_pt sl2lib_pt \
                   sl1lib_pt scblas_pt sfblas_pt PTshared
	rm -f sinvtst_pt.o
	$(MAKE) sinvtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xstrtri_all_pt_dyn : xstrtritst_pt xstrtritstF_pt \
                   xstrtritst_sys_pt xstrtritstF_sys_pt PTshared

xstrtritst_pt_dyn : strtritst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt PTshared
	rm -f strtritst_pt.o
	$(MAKE) strtritst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xstrtritstF_pt_dyn : slapack ststlib_pt sl3lib_pt sl2lib_pt \
                   sl1lib_pt scblas_pt sfblas_pt PTshared
	rm -f strtritst_pt.o
	$(MAKE) strtritst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsuum_all_pt_dyn : xsuumtst_pt xsuumtstF_pt \
                   xsuumtst_sys_pt xsuumtstF_sys_pt PTshared

xsuumtst_pt_dyn : suumtst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt PTshared
	rm -f suumtst_pt.o
	$(MAKE) suumtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsuumtstF_pt_dyn : slapack ststlib_pt sl3lib_pt sl2lib_pt \
                   sl1lib_pt scblas_pt sfblas_pt PTshared
	rm -f suumtst_pt.o
	$(MAKE) suumtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsslv_all_pt_dyn : xsslvtst_pt xsslvtstF_pt \
                   xsslvtst_sys_pt xsslvtstF_sys_pt PTshared

xsslvtst_pt_dyn : sslvtst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt PTshared
	rm -f sslvtst_pt.o
	$(MAKE) sslvtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsslvtstF_pt_dyn : slapack ststlib_pt sl3lib_pt sl2lib_pt \
                   sl1lib_pt scblas_pt sfblas_pt PTshared
	rm -f sslvtst_pt.o
	$(MAKE) sslvtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsllt_all_pt_dyn : xsllttst_pt xsllttstF_pt \
                   xsllttst_sys_pt xsllttstF_sys_pt PTshared

xsllttst_pt_dyn : sllttst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt PTshared
	rm -f sllttst_pt.o
	$(MAKE) sllttst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsllttstF_pt_dyn : slapack ststlib_pt sl3lib_pt sl2lib_pt \
                   sl1lib_pt scblas_pt sfblas_pt PTshared
	rm -f sllttst_pt.o
	$(MAKE) sllttst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xslu_all_pt_dyn : xslutst_pt xslutstF_pt \
                   xslutst_sys_pt xslutstF_sys_pt PTshared

xslutst_pt_dyn : slutst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt PTshared
	rm -f slutst_pt.o
	$(MAKE) slutst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xslutstF_pt_dyn : slapack ststlib_pt sl3lib_pt sl2lib_pt \
                   sl1lib_pt scblas_pt sfblas_pt PTshared
	rm -f slutst_pt.o
	$(MAKE) slutst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsmmtst_pt_dyn : $(INCAdir)/atlas_type.h sgemmtst_pt.o smmlib_pt ststlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ sgemmtst_pt.o \
              $(TESTlib) $(smmobj) $(LIBdir)/libf77blas.so \
              $(LIBdir)/libcblas.so $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)

xsl1blastst_dyn : sl1blastst.o sl1lib ststlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl1blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsl2blastst_dyn : sl2blastst.o sl2lib ststlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl2blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsl3blastst_dyn : $(INCAdir)/atlas_type.h sl3blastst.o \
                   ststlib sl3lib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl3blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsinv_all_dyn : xsinvtst xsinvtstF \
                   xsinvtst_sys xsinvtstF_sys shared

xsinvtst_dyn : sinvtst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas shared
	rm -f sinvtst.o
	$(MAKE) sinvtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsinvtstF_dyn : slapack ststlib sl3lib sl2lib \
                   sl1lib scblas sfblas shared
	rm -f sinvtst.o
	$(MAKE) sinvtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xstrtri_all_dyn : xstrtritst xstrtritstF \
                   xstrtritst_sys xstrtritstF_sys shared

xstrtritst_dyn : strtritst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas shared
	rm -f strtritst.o
	$(MAKE) strtritst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xstrtritstF_dyn : slapack ststlib sl3lib sl2lib \
                   sl1lib scblas sfblas shared
	rm -f strtritst.o
	$(MAKE) strtritst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsuum_all_dyn : xsuumtst xsuumtstF \
                   xsuumtst_sys xsuumtstF_sys shared

xsuumtst_dyn : suumtst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas shared
	rm -f suumtst.o
	$(MAKE) suumtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsuumtstF_dyn : slapack ststlib sl3lib sl2lib \
                   sl1lib scblas sfblas shared
	rm -f suumtst.o
	$(MAKE) suumtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsslv_all_dyn : xsslvtst xsslvtstF \
                   xsslvtst_sys xsslvtstF_sys shared

xsslvtst_dyn : sslvtst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas shared
	rm -f sslvtst.o
	$(MAKE) sslvtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsslvtstF_dyn : slapack ststlib sl3lib sl2lib \
                   sl1lib scblas sfblas shared
	rm -f sslvtst.o
	$(MAKE) sslvtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsllt_all_dyn : xsllttst xsllttstF \
                   xsllttst_sys xsllttstF_sys shared

xsllttst_dyn : sllttst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas shared
	rm -f sllttst.o
	$(MAKE) sllttst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsllttstF_dyn : slapack ststlib sl3lib sl2lib \
                   sl1lib scblas sfblas shared
	rm -f sllttst.o
	$(MAKE) sllttst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xslu_all_dyn : xslutst xslutstF \
                   xslutst_sys xslutstF_sys shared

xslutst_dyn : slutst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas shared
	rm -f slutst.o
	$(MAKE) slutst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xslutstF_dyn : slapack ststlib sl3lib sl2lib \
                   sl1lib scblas sfblas shared
	rm -f slutst.o
	$(MAKE) slutst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xsmmtst_dyn : $(INCAdir)/atlas_type.h sgemmtst.o smmlib ststlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ sgemmtst.o \
              $(TESTlib) $(smmobj) $(LIBdir)/libf77blas.so \
              $(LIBdir)/libcblas.so $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)


xsl1blastst_mike : sl1blastst_mike.o sl1lib_pt ststlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl1blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xsl2blastst_mike : sl2blastst_pt.o sl2lib_pt ststlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl2blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xsl3blastst_mike : $(INCAdir)/atlas_type.h sl3blastst_pt.o \
                   ststlib_pt sl3lib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl3blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)

xsl1blastst_pt : sl1blastst_pt.o sl1lib_pt ststlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl1blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xsl2blastst_pt : sl2blastst_pt.o sl2lib_pt ststlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl2blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xsl3blastst_pt : $(INCAdir)/atlas_type.h sl3blastst_pt.o \
                   ststlib_pt sl3lib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl3blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
ssanity_test_pt: xsinvtst_pt xsslvtst_pt xstrtritst_pt xsuumtst_pt
	$(ATLRUN) $(BINdir) xsslvtst_pt -n 167 -r 83 -O 2 c r \
                  >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xsslvtst_pt -n 167 -r 83 -O 2 c r -U 2 u l \
                  >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xstrtritst_pt -n 167 -O 2 c r -U 2 u l \
                  -D 2 n u >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xsuumtst_pt -n 167 -O 2 c r -U 2 u l \
                  >> $(BINdir)/ptsanity.out
xsinv_all_pt : xsinvtst_pt xsinvtstF_pt \
                   xsinvtst_sb_pt xsinvtstF_sys_pt \
                   xsinvtst_sb_pt xsinvtstF_sl_sb_pt \
                   xsinvtstF_fl_ab_pt xsinvtstF_sl_ab_pt \
                   xsinvtstF_fl_fb_pt xsinvtstF_fl_sb_pt

# All ATLAS libs, C interface only
xsinvtst_pt : sinvtst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xsinvtstF_pt : sinvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xsinvtst_sb_pt : sinvtst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xsinvtstF_sb_pt : sinvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xsinvtstF_sl_sb_pt : sinvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xsinvtstF_sl_ab_pt : sinvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xsinvtstF_fl_ab_pt : sinvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xsinvtstF_fl_sb_pt : sinvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xsinvtstF_fl_fb_pt : sinvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xstrtri_all_pt : xstrtritst_pt xstrtritstF_pt \
                   xstrtritst_sb_pt xstrtritstF_sys_pt \
                   xstrtritst_sb_pt xstrtritstF_sl_sb_pt \
                   xstrtritstF_fl_ab_pt xstrtritstF_sl_ab_pt \
                   xstrtritstF_fl_fb_pt xstrtritstF_fl_sb_pt

# All ATLAS libs, C interface only
xstrtritst_pt : strtritst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xstrtritstF_pt : strtritstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xstrtritst_sb_pt : strtritst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xstrtritstF_sb_pt : strtritstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xstrtritstF_sl_sb_pt : strtritstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xstrtritstF_sl_ab_pt : strtritstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xstrtritstF_fl_ab_pt : strtritstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xstrtritstF_fl_sb_pt : strtritstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xstrtritstF_fl_fb_pt : strtritstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xsuum_all_pt : xsuumtst_pt xsuumtstF_pt \
                   xsuumtst_sb_pt xsuumtstF_sys_pt \
                   xsuumtst_sb_pt xsuumtstF_sl_sb_pt \
                   xsuumtstF_fl_ab_pt xsuumtstF_sl_ab_pt \
                   xsuumtstF_fl_fb_pt xsuumtstF_fl_sb_pt

# All ATLAS libs, C interface only
xsuumtst_pt : suumtst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xsuumtstF_pt : suumtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xsuumtst_sb_pt : suumtst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xsuumtstF_sb_pt : suumtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xsuumtstF_sl_sb_pt : suumtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xsuumtstF_sl_ab_pt : suumtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xsuumtstF_fl_ab_pt : suumtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xsuumtstF_fl_sb_pt : suumtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xsuumtstF_fl_fb_pt : suumtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xsslv_all_pt : xsslvtst_pt xsslvtstF_pt \
                   xsslvtst_sb_pt xsslvtstF_sys_pt \
                   xsslvtst_sb_pt xsslvtstF_sl_sb_pt \
                   xsslvtstF_fl_ab_pt xsslvtstF_sl_ab_pt \
                   xsslvtstF_fl_fb_pt xsslvtstF_fl_sb_pt

# All ATLAS libs, C interface only
xsslvtst_pt : sslvtst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xsslvtstF_pt : sslvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xsslvtst_sb_pt : sslvtst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xsslvtstF_sb_pt : sslvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xsslvtstF_sl_sb_pt : sslvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xsslvtstF_sl_ab_pt : sslvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xsslvtstF_fl_ab_pt : sslvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xsslvtstF_fl_sb_pt : sslvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xsslvtstF_fl_fb_pt : sslvtstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xsllt_all_pt : xsllttst_pt xsllttstF_pt \
                   xsllttst_sb_pt xsllttstF_sys_pt \
                   xsllttst_sb_pt xsllttstF_sl_sb_pt \
                   xsllttstF_fl_ab_pt xsllttstF_sl_ab_pt \
                   xsllttstF_fl_fb_pt xsllttstF_fl_sb_pt

# All ATLAS libs, C interface only
xsllttst_pt : sllttst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xsllttstF_pt : sllttstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xsllttst_sb_pt : sllttst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xsllttstF_sb_pt : sllttstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xsllttstF_sl_sb_pt : sllttstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xsllttstF_sl_ab_pt : sllttstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xsllttstF_fl_ab_pt : sllttstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xsllttstF_fl_sb_pt : sllttstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xsllttstF_fl_fb_pt : sllttstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xslu_all_pt : xslutst_pt xslutstF_pt \
                   xslutst_sb_pt xslutstF_sys_pt \
                   xslutst_sb_pt xslutstF_sl_sb_pt \
                   xslutstF_fl_ab_pt xslutstF_sl_ab_pt \
                   xslutstF_fl_fb_pt xslutstF_fl_sb_pt

# All ATLAS libs, C interface only
xslutst_pt : slutst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xslutstF_pt : slutstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xslutst_sb_pt : slutst_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xslutstF_sb_pt : slutstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xslutstF_sl_sb_pt : slutstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xslutstF_sl_ab_pt : slutstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xslutstF_fl_ab_pt : slutstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xslutstF_fl_sb_pt : slutstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xslutstF_fl_fb_pt : slutstF_pt.o slapack ststlib_pt sl3lib_pt \
                  sl2lib_pt sl1lib_pt scblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xsmmtst_pt : $(INCAdir)/atlas_type.h sgemmtst_pt.o smmlib_pt ststlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ sgemmtst_pt.o \
              $(TESTlib) $(BLASlib) $(smmobj) $(ATLASlib) $(LIBS)

xsl1blastst : sl1blastst.o sl1lib ststlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl1blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xsl2blastst : sl2blastst.o sl2lib ststlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl2blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xsl3blastst : $(INCAdir)/atlas_type.h sl3blastst.o \
                   ststlib sl3lib
	$(FLINKER) $(FCLINKFLAGS) -o $@ sl3blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
ssanity_test: xsinvtst xsslvtst xstrtritst xsuumtst
	$(ATLRUN) $(BINdir) xsslvtst -n 167 -r 83 -O 2 c r \
                  >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xsslvtst -n 167 -r 83 -O 2 c r -U 2 u l \
                  >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xstrtritst -n 167 -O 2 c r -U 2 u l \
                  -D 2 n u >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xsuumtst -n 167 -O 2 c r -U 2 u l \
                  >> $(BINdir)/sanity.out
xsinv_all : xsinvtst xsinvtstF \
                   xsinvtst_sb xsinvtstF_sys \
                   xsinvtst_sb xsinvtstF_sl_sb \
                   xsinvtstF_fl_ab xsinvtstF_sl_ab \
                   xsinvtstF_fl_fb xsinvtstF_fl_sb

# All ATLAS libs, C interface only
xsinvtst : sinvtst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xsinvtstF : sinvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xsinvtst_sb : sinvtst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xsinvtstF_sb : sinvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xsinvtstF_sl_sb : sinvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xsinvtstF_sl_ab : sinvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xsinvtstF_fl_ab : sinvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xsinvtstF_fl_sb : sinvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xsinvtstF_fl_fb : sinvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xstrtri_all : xstrtritst xstrtritstF \
                   xstrtritst_sb xstrtritstF_sys \
                   xstrtritst_sb xstrtritstF_sl_sb \
                   xstrtritstF_fl_ab xstrtritstF_sl_ab \
                   xstrtritstF_fl_fb xstrtritstF_fl_sb

# All ATLAS libs, C interface only
xstrtritst : strtritst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xstrtritstF : strtritstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xstrtritst_sb : strtritst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xstrtritstF_sb : strtritstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xstrtritstF_sl_sb : strtritstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xstrtritstF_sl_ab : strtritstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xstrtritstF_fl_ab : strtritstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xstrtritstF_fl_sb : strtritstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xstrtritstF_fl_fb : strtritstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ strtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xsuum_all : xsuumtst xsuumtstF \
                   xsuumtst_sb xsuumtstF_sys \
                   xsuumtst_sb xsuumtstF_sl_sb \
                   xsuumtstF_fl_ab xsuumtstF_sl_ab \
                   xsuumtstF_fl_fb xsuumtstF_fl_sb

# All ATLAS libs, C interface only
xsuumtst : suumtst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xsuumtstF : suumtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xsuumtst_sb : suumtst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xsuumtstF_sb : suumtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xsuumtstF_sl_sb : suumtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xsuumtstF_sl_ab : suumtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xsuumtstF_fl_ab : suumtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xsuumtstF_fl_sb : suumtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xsuumtstF_fl_fb : suumtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ suumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xsslv_all : xsslvtst xsslvtstF \
                   xsslvtst_sb xsslvtstF_sys \
                   xsslvtst_sb xsslvtstF_sl_sb \
                   xsslvtstF_fl_ab xsslvtstF_sl_ab \
                   xsslvtstF_fl_fb xsslvtstF_fl_sb

# All ATLAS libs, C interface only
xsslvtst : sslvtst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xsslvtstF : sslvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xsslvtst_sb : sslvtst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xsslvtstF_sb : sslvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xsslvtstF_sl_sb : sslvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xsslvtstF_sl_ab : sslvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xsslvtstF_fl_ab : sslvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xsslvtstF_fl_sb : sslvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xsslvtstF_fl_fb : sslvtstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xsllt_all : xsllttst xsllttstF \
                   xsllttst_sb xsllttstF_sys \
                   xsllttst_sb xsllttstF_sl_sb \
                   xsllttstF_fl_ab xsllttstF_sl_ab \
                   xsllttstF_fl_fb xsllttstF_fl_sb

# All ATLAS libs, C interface only
xsllttst : sllttst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xsllttstF : sllttstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xsllttst_sb : sllttst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xsllttstF_sb : sllttstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xsllttstF_sl_sb : sllttstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xsllttstF_sl_ab : sllttstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xsllttstF_fl_ab : sllttstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xsllttstF_fl_sb : sllttstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xsllttstF_fl_fb : sllttstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ sllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xslu_all : xslutst xslutstF \
                   xslutst_sb xslutstF_sys \
                   xslutst_sb xslutstF_sl_sb \
                   xslutstF_fl_ab xslutstF_sl_ab \
                   xslutstF_fl_fb xslutstF_fl_sb

# All ATLAS libs, C interface only
xslutst : slutst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xslutstF : slutstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xslutst_sb : slutst.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xslutstF_sb : slutstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xslutstF_sl_sb : slutstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xslutstF_sl_ab : slutstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xslutstF_fl_ab : slutstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xslutstF_fl_sb : slutstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xslutstF_fl_fb : slutstF.o slapack ststlib sl3lib \
                  sl2lib sl1lib scblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ slutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xsmmtst : $(INCAdir)/atlas_type.h sgemmtst.o smmlib ststlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ sgemmtst.o \
              $(TESTlib) $(BLASlib) $(smmobj) $(ATLASlib) $(LIBS)

xsmmtst_big : $(INCAdir)/atlas_type.h sgemmtst_big.o smmlib \
              ststlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ sgemmtst_big.o \
                   $(TESTlib) $(BLASlib) $(smmobj) $(ATLASlib) $(LIBS)
xsgpmmtst : $(INCAdir)/atlas_type.h sgpmmtst.o smmlib ststlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ sgpmmtst.o \
              $(TESTlib) $(BLASlib) $(smmobj) $(ATLASlib) $(LIBS)
sgpmmtst.o : $(mySRCdir)/gpmmtst.c $(INCSdir)/atlas_misc.h $(INCAdir)/smm.h \
                  $(INCSdir)/atlas_lvl3.h $(INCSdir)/atlas_pkblas.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL $(mySRCdir)/gpmmtst.c
	
ststlib_pt : ststlib
ststlib :
	cd $(TSTdir) ; $(MAKE) slib

sfblas_pt : sfblaslib_pt
sfblaslib_pt :
	cd $(FBLdir) ; $(MAKE) sptlib
sfblas : sfblaslib
sfblaslib :
	cd $(FBLdir) ; $(MAKE) slib
scblas_pt : scblaslib_pt
scblaslib_pt :
	cd $(CBLdir) ; $(MAKE) sptlib
scblas : scblaslib
scblaslib :
	cd $(CBLdir) ; $(MAKE) slib

smmlib_pt : auxlib_pt
	cd $(GMMdir) ; $(MAKE) slib
smmlib : auxlib
	cd $(GMMdir) ; $(MAKE) slib
spklib : auxlib
	cd $(BLDdir)/src/blas/pklevel3 ; $(MAKE) slib

sl2lib_pt : sl2lib
	cd $(PTSdir)/blas/level2 ; $(MAKE) slib
sl2lib : sl1lib auxlib
	cd $(GMVdir) ; $(MAKE) slib
	cd $(GR1dir) ; $(MAKE) slib
	cd $(L2Bdir) ; $(MAKE) slib

sl3lib_pt : sl3lib smmlib_pt
	cd $(PTSdir)/blas/level3 ; $(MAKE) slib
sl3lib : smmlib
	cd $(L3Bdir) ; $(MAKE) slib

sl1lib_pt : auxlib_pt sl1lib
	cd $(PTSdir)/blas/level1 ; $(MAKE) slib
sl1lib : auxlib
	cd $(L1Bdir) ; $(MAKE) slvl1

slapack :
	cd $(BLDdir)/src/lapack ; $(MAKE) slib

xsprintblk : sprintblk.o
	$(CLINKER) -o $@ sprintblk.o $(ATLASlib)
sprintblk.o : $(INCSdir)/atlas_mv.h $(INCSdir)/atlas_r1.h \
                   $(INCAdir)/smm.h $(mySRCdir)/printblk.c
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL $(mySRCdir)/printblk.c

sl1blastst_mike.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL -DATL_USEPTHREADS -DATL_MIKE $(mySRCdir)/l1blastst.c
sl2blastst_mike.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL -DATL_USEPTHREADS -DATL_MIKE $(mySRCdir)/l2blastst.c

sl3blastst_mike.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/l3blastst.c
sinvtst_mike.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/invtst.c
sinvtstF_mike.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/invtst.c
strtritst_mike.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/trtritst.c
strtritstF_mike.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/trtritst.c
sslvtst_mike.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/slvtst.c
sslvtstF_mike.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/slvtst.c
slutst_mike.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/lutst.c
slutstF_mike.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/lutst.c
sllttst_mike.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/llttst.c
sllttstF_mike.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/llttst.c
suumtst_mike.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/uumtst.c
suumtstF_mike.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/uumtst.c

sscaltst_mike.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/scaltst.c

sgemmtst_mike.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DATL_MIKE -DSREAL $(mySRCdir)/gemmtst.c

sl1blastst_pt.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL -DATL_USEPTHREADS $(mySRCdir)/l1blastst.c
sl2blastst_pt.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL -DATL_USEPTHREADS $(mySRCdir)/l2blastst.c

sl3blastst_pt.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DATL_USEPTHREADS -DSREAL $(mySRCdir)/l3blastst.c
sinvtst_pt.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSREAL $(mySRCdir)/invtst.c
sinvtstF_pt.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSREAL $(mySRCdir)/invtst.c
strtritst_pt.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSREAL $(mySRCdir)/trtritst.c
strtritstF_pt.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSREAL $(mySRCdir)/trtritst.c
sslvtst_pt.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSREAL $(mySRCdir)/slvtst.c
sslvtstF_pt.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSREAL $(mySRCdir)/slvtst.c
slutst_pt.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSREAL $(mySRCdir)/lutst.c
slutstF_pt.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSREAL $(mySRCdir)/lutst.c
sllttst_pt.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSREAL $(mySRCdir)/llttst.c
sllttstF_pt.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSREAL $(mySRCdir)/llttst.c
suumtst_pt.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSREAL $(mySRCdir)/uumtst.c
suumtstF_pt.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSREAL $(mySRCdir)/uumtst.c

sscaltst_pt.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DSREAL $(mySRCdir)/scaltst.c

sgemmtst_pt.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DSREAL $(mySRCdir)/gemmtst.c

sl1blastst.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL  $(mySRCdir)/l1blastst.c
sl2blastst.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL  $(mySRCdir)/l2blastst.c

sl3blastst.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT  -DSREAL $(mySRCdir)/l3blastst.c
sinvtst.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSREAL $(mySRCdir)/invtst.c
sinvtstF.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSREAL $(mySRCdir)/invtst.c
strtritst.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSREAL $(mySRCdir)/trtritst.c
strtritstF.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSREAL $(mySRCdir)/trtritst.c
sslvtst.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSREAL $(mySRCdir)/slvtst.c
sslvtstF.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSREAL $(mySRCdir)/slvtst.c
slutst.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSREAL $(mySRCdir)/lutst.c
slutstF.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSREAL $(mySRCdir)/lutst.c
sllttst.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSREAL $(mySRCdir)/llttst.c
sllttstF.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSREAL $(mySRCdir)/llttst.c
suumtst.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSREAL $(mySRCdir)/uumtst.c
suumtstF.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSREAL $(mySRCdir)/uumtst.c

sscaltst.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS)  -DSREAL $(mySRCdir)/scaltst.c

sgemmtst.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS)  -DSREAL $(mySRCdir)/gemmtst.c

sgemmtst_big.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                 $(INCAdir)/smm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL -DTRUST_BIG $(mySRCdir)/gemmtst.c
xdl1blastst_pt_dyn : dl1blastst_pt.o dl1lib_pt dtstlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl1blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdl2blastst_pt_dyn : dl2blastst_pt.o dl2lib_pt dtstlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl2blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdl3blastst_pt_dyn : $(INCAdir)/atlas_type.h dl3blastst_pt.o \
                   dtstlib_pt dl3lib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl3blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdinv_all_pt_dyn : xdinvtst_pt xdinvtstF_pt \
                   xdinvtst_sys_pt xdinvtstF_sys_pt PTshared

xdinvtst_pt_dyn : dinvtst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt PTshared
	rm -f dinvtst_pt.o
	$(MAKE) dinvtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdinvtstF_pt_dyn : dlapack dtstlib_pt dl3lib_pt dl2lib_pt \
                   dl1lib_pt dcblas_pt dfblas_pt PTshared
	rm -f dinvtst_pt.o
	$(MAKE) dinvtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdtrtri_all_pt_dyn : xdtrtritst_pt xdtrtritstF_pt \
                   xdtrtritst_sys_pt xdtrtritstF_sys_pt PTshared

xdtrtritst_pt_dyn : dtrtritst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt PTshared
	rm -f dtrtritst_pt.o
	$(MAKE) dtrtritst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdtrtritstF_pt_dyn : dlapack dtstlib_pt dl3lib_pt dl2lib_pt \
                   dl1lib_pt dcblas_pt dfblas_pt PTshared
	rm -f dtrtritst_pt.o
	$(MAKE) dtrtritst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xduum_all_pt_dyn : xduumtst_pt xduumtstF_pt \
                   xduumtst_sys_pt xduumtstF_sys_pt PTshared

xduumtst_pt_dyn : duumtst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt PTshared
	rm -f duumtst_pt.o
	$(MAKE) duumtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xduumtstF_pt_dyn : dlapack dtstlib_pt dl3lib_pt dl2lib_pt \
                   dl1lib_pt dcblas_pt dfblas_pt PTshared
	rm -f duumtst_pt.o
	$(MAKE) duumtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdslv_all_pt_dyn : xdslvtst_pt xdslvtstF_pt \
                   xdslvtst_sys_pt xdslvtstF_sys_pt PTshared

xdslvtst_pt_dyn : dslvtst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt PTshared
	rm -f dslvtst_pt.o
	$(MAKE) dslvtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdslvtstF_pt_dyn : dlapack dtstlib_pt dl3lib_pt dl2lib_pt \
                   dl1lib_pt dcblas_pt dfblas_pt PTshared
	rm -f dslvtst_pt.o
	$(MAKE) dslvtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdllt_all_pt_dyn : xdllttst_pt xdllttstF_pt \
                   xdllttst_sys_pt xdllttstF_sys_pt PTshared

xdllttst_pt_dyn : dllttst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt PTshared
	rm -f dllttst_pt.o
	$(MAKE) dllttst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdllttstF_pt_dyn : dlapack dtstlib_pt dl3lib_pt dl2lib_pt \
                   dl1lib_pt dcblas_pt dfblas_pt PTshared
	rm -f dllttst_pt.o
	$(MAKE) dllttst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdlu_all_pt_dyn : xdlutst_pt xdlutstF_pt \
                   xdlutst_sys_pt xdlutstF_sys_pt PTshared

xdlutst_pt_dyn : dlutst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt PTshared
	rm -f dlutst_pt.o
	$(MAKE) dlutst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdlutstF_pt_dyn : dlapack dtstlib_pt dl3lib_pt dl2lib_pt \
                   dl1lib_pt dcblas_pt dfblas_pt PTshared
	rm -f dlutst_pt.o
	$(MAKE) dlutst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdmmtst_pt_dyn : $(INCAdir)/atlas_type.h dgemmtst_pt.o dmmlib_pt dtstlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ dgemmtst_pt.o \
              $(TESTlib) $(dmmobj) $(LIBdir)/libf77blas.so \
              $(LIBdir)/libcblas.so $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)

xdl1blastst_dyn : dl1blastst.o dl1lib dtstlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl1blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdl2blastst_dyn : dl2blastst.o dl2lib dtstlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl2blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdl3blastst_dyn : $(INCAdir)/atlas_type.h dl3blastst.o \
                   dtstlib dl3lib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl3blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdinv_all_dyn : xdinvtst xdinvtstF \
                   xdinvtst_sys xdinvtstF_sys shared

xdinvtst_dyn : dinvtst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas shared
	rm -f dinvtst.o
	$(MAKE) dinvtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdinvtstF_dyn : dlapack dtstlib dl3lib dl2lib \
                   dl1lib dcblas dfblas shared
	rm -f dinvtst.o
	$(MAKE) dinvtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdtrtri_all_dyn : xdtrtritst xdtrtritstF \
                   xdtrtritst_sys xdtrtritstF_sys shared

xdtrtritst_dyn : dtrtritst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas shared
	rm -f dtrtritst.o
	$(MAKE) dtrtritst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdtrtritstF_dyn : dlapack dtstlib dl3lib dl2lib \
                   dl1lib dcblas dfblas shared
	rm -f dtrtritst.o
	$(MAKE) dtrtritst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xduum_all_dyn : xduumtst xduumtstF \
                   xduumtst_sys xduumtstF_sys shared

xduumtst_dyn : duumtst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas shared
	rm -f duumtst.o
	$(MAKE) duumtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xduumtstF_dyn : dlapack dtstlib dl3lib dl2lib \
                   dl1lib dcblas dfblas shared
	rm -f duumtst.o
	$(MAKE) duumtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdslv_all_dyn : xdslvtst xdslvtstF \
                   xdslvtst_sys xdslvtstF_sys shared

xdslvtst_dyn : dslvtst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas shared
	rm -f dslvtst.o
	$(MAKE) dslvtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdslvtstF_dyn : dlapack dtstlib dl3lib dl2lib \
                   dl1lib dcblas dfblas shared
	rm -f dslvtst.o
	$(MAKE) dslvtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdllt_all_dyn : xdllttst xdllttstF \
                   xdllttst_sys xdllttstF_sys shared

xdllttst_dyn : dllttst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas shared
	rm -f dllttst.o
	$(MAKE) dllttst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdllttstF_dyn : dlapack dtstlib dl3lib dl2lib \
                   dl1lib dcblas dfblas shared
	rm -f dllttst.o
	$(MAKE) dllttst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdlu_all_dyn : xdlutst xdlutstF \
                   xdlutst_sys xdlutstF_sys shared

xdlutst_dyn : dlutst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas shared
	rm -f dlutst.o
	$(MAKE) dlutst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdlutstF_dyn : dlapack dtstlib dl3lib dl2lib \
                   dl1lib dcblas dfblas shared
	rm -f dlutst.o
	$(MAKE) dlutst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xdmmtst_dyn : $(INCAdir)/atlas_type.h dgemmtst.o dmmlib dtstlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ dgemmtst.o \
              $(TESTlib) $(dmmobj) $(LIBdir)/libf77blas.so \
              $(LIBdir)/libcblas.so $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)


xdl1blastst_mike : dl1blastst_mike.o dl1lib_pt dtstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl1blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xdl2blastst_mike : dl2blastst_pt.o dl2lib_pt dtstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl2blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xdl3blastst_mike : $(INCAdir)/atlas_type.h dl3blastst_pt.o \
                   dtstlib_pt dl3lib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl3blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)

xdl1blastst_pt : dl1blastst_pt.o dl1lib_pt dtstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl1blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xdl2blastst_pt : dl2blastst_pt.o dl2lib_pt dtstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl2blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xdl3blastst_pt : $(INCAdir)/atlas_type.h dl3blastst_pt.o \
                   dtstlib_pt dl3lib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl3blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
dsanity_test_pt: xdinvtst_pt xdslvtst_pt xdtrtritst_pt xduumtst_pt
	$(ATLRUN) $(BINdir) xdslvtst_pt -n 167 -r 83 -O 2 c r \
                  >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xdslvtst_pt -n 167 -r 83 -O 2 c r -U 2 u l \
                  >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xdtrtritst_pt -n 167 -O 2 c r -U 2 u l \
                  -D 2 n u >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xduumtst_pt -n 167 -O 2 c r -U 2 u l \
                  >> $(BINdir)/ptsanity.out
xdinv_all_pt : xdinvtst_pt xdinvtstF_pt \
                   xdinvtst_sb_pt xdinvtstF_sys_pt \
                   xdinvtst_sb_pt xdinvtstF_sl_sb_pt \
                   xdinvtstF_fl_ab_pt xdinvtstF_sl_ab_pt \
                   xdinvtstF_fl_fb_pt xdinvtstF_fl_sb_pt

# All ATLAS libs, C interface only
xdinvtst_pt : dinvtst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdinvtstF_pt : dinvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdinvtst_sb_pt : dinvtst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdinvtstF_sb_pt : dinvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdinvtstF_sl_sb_pt : dinvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdinvtstF_sl_ab_pt : dinvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdinvtstF_fl_ab_pt : dinvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdinvtstF_fl_sb_pt : dinvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdinvtstF_fl_fb_pt : dinvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xdtrtri_all_pt : xdtrtritst_pt xdtrtritstF_pt \
                   xdtrtritst_sb_pt xdtrtritstF_sys_pt \
                   xdtrtritst_sb_pt xdtrtritstF_sl_sb_pt \
                   xdtrtritstF_fl_ab_pt xdtrtritstF_sl_ab_pt \
                   xdtrtritstF_fl_fb_pt xdtrtritstF_fl_sb_pt

# All ATLAS libs, C interface only
xdtrtritst_pt : dtrtritst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdtrtritstF_pt : dtrtritstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdtrtritst_sb_pt : dtrtritst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdtrtritstF_sb_pt : dtrtritstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdtrtritstF_sl_sb_pt : dtrtritstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdtrtritstF_sl_ab_pt : dtrtritstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdtrtritstF_fl_ab_pt : dtrtritstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdtrtritstF_fl_sb_pt : dtrtritstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdtrtritstF_fl_fb_pt : dtrtritstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xduum_all_pt : xduumtst_pt xduumtstF_pt \
                   xduumtst_sb_pt xduumtstF_sys_pt \
                   xduumtst_sb_pt xduumtstF_sl_sb_pt \
                   xduumtstF_fl_ab_pt xduumtstF_sl_ab_pt \
                   xduumtstF_fl_fb_pt xduumtstF_fl_sb_pt

# All ATLAS libs, C interface only
xduumtst_pt : duumtst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xduumtstF_pt : duumtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xduumtst_sb_pt : duumtst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xduumtstF_sb_pt : duumtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xduumtstF_sl_sb_pt : duumtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xduumtstF_sl_ab_pt : duumtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xduumtstF_fl_ab_pt : duumtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xduumtstF_fl_sb_pt : duumtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xduumtstF_fl_fb_pt : duumtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xdslv_all_pt : xdslvtst_pt xdslvtstF_pt \
                   xdslvtst_sb_pt xdslvtstF_sys_pt \
                   xdslvtst_sb_pt xdslvtstF_sl_sb_pt \
                   xdslvtstF_fl_ab_pt xdslvtstF_sl_ab_pt \
                   xdslvtstF_fl_fb_pt xdslvtstF_fl_sb_pt

# All ATLAS libs, C interface only
xdslvtst_pt : dslvtst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdslvtstF_pt : dslvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdslvtst_sb_pt : dslvtst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdslvtstF_sb_pt : dslvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdslvtstF_sl_sb_pt : dslvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdslvtstF_sl_ab_pt : dslvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdslvtstF_fl_ab_pt : dslvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdslvtstF_fl_sb_pt : dslvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdslvtstF_fl_fb_pt : dslvtstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xdllt_all_pt : xdllttst_pt xdllttstF_pt \
                   xdllttst_sb_pt xdllttstF_sys_pt \
                   xdllttst_sb_pt xdllttstF_sl_sb_pt \
                   xdllttstF_fl_ab_pt xdllttstF_sl_ab_pt \
                   xdllttstF_fl_fb_pt xdllttstF_fl_sb_pt

# All ATLAS libs, C interface only
xdllttst_pt : dllttst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdllttstF_pt : dllttstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdllttst_sb_pt : dllttst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdllttstF_sb_pt : dllttstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdllttstF_sl_sb_pt : dllttstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdllttstF_sl_ab_pt : dllttstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdllttstF_fl_ab_pt : dllttstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdllttstF_fl_sb_pt : dllttstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdllttstF_fl_fb_pt : dllttstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xdlu_all_pt : xdlutst_pt xdlutstF_pt \
                   xdlutst_sb_pt xdlutstF_sys_pt \
                   xdlutst_sb_pt xdlutstF_sl_sb_pt \
                   xdlutstF_fl_ab_pt xdlutstF_sl_ab_pt \
                   xdlutstF_fl_fb_pt xdlutstF_fl_sb_pt

# All ATLAS libs, C interface only
xdlutst_pt : dlutst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdlutstF_pt : dlutstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdlutst_sb_pt : dlutst_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdlutstF_sb_pt : dlutstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdlutstF_sl_sb_pt : dlutstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdlutstF_sl_ab_pt : dlutstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdlutstF_fl_ab_pt : dlutstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdlutstF_fl_sb_pt : dlutstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdlutstF_fl_fb_pt : dlutstF_pt.o dlapack dtstlib_pt dl3lib_pt \
                  dl2lib_pt dl1lib_pt dcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xdmmtst_pt : $(INCAdir)/atlas_type.h dgemmtst_pt.o dmmlib_pt dtstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ dgemmtst_pt.o \
              $(TESTlib) $(BLASlib) $(dmmobj) $(ATLASlib) $(LIBS)

xdl1blastst : dl1blastst.o dl1lib dtstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl1blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xdl2blastst : dl2blastst.o dl2lib dtstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl2blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xdl3blastst : $(INCAdir)/atlas_type.h dl3blastst.o \
                   dtstlib dl3lib
	$(FLINKER) $(FCLINKFLAGS) -o $@ dl3blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
dsanity_test: xdinvtst xdslvtst xdtrtritst xduumtst
	$(ATLRUN) $(BINdir) xdslvtst -n 167 -r 83 -O 2 c r \
                  >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xdslvtst -n 167 -r 83 -O 2 c r -U 2 u l \
                  >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xdtrtritst -n 167 -O 2 c r -U 2 u l \
                  -D 2 n u >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xduumtst -n 167 -O 2 c r -U 2 u l \
                  >> $(BINdir)/sanity.out
xdinv_all : xdinvtst xdinvtstF \
                   xdinvtst_sb xdinvtstF_sys \
                   xdinvtst_sb xdinvtstF_sl_sb \
                   xdinvtstF_fl_ab xdinvtstF_sl_ab \
                   xdinvtstF_fl_fb xdinvtstF_fl_sb

# All ATLAS libs, C interface only
xdinvtst : dinvtst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdinvtstF : dinvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdinvtst_sb : dinvtst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdinvtstF_sb : dinvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdinvtstF_sl_sb : dinvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdinvtstF_sl_ab : dinvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdinvtstF_fl_ab : dinvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdinvtstF_fl_sb : dinvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdinvtstF_fl_fb : dinvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xdtrtri_all : xdtrtritst xdtrtritstF \
                   xdtrtritst_sb xdtrtritstF_sys \
                   xdtrtritst_sb xdtrtritstF_sl_sb \
                   xdtrtritstF_fl_ab xdtrtritstF_sl_ab \
                   xdtrtritstF_fl_fb xdtrtritstF_fl_sb

# All ATLAS libs, C interface only
xdtrtritst : dtrtritst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdtrtritstF : dtrtritstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdtrtritst_sb : dtrtritst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdtrtritstF_sb : dtrtritstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdtrtritstF_sl_sb : dtrtritstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdtrtritstF_sl_ab : dtrtritstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdtrtritstF_fl_ab : dtrtritstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdtrtritstF_fl_sb : dtrtritstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdtrtritstF_fl_fb : dtrtritstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dtrtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xduum_all : xduumtst xduumtstF \
                   xduumtst_sb xduumtstF_sys \
                   xduumtst_sb xduumtstF_sl_sb \
                   xduumtstF_fl_ab xduumtstF_sl_ab \
                   xduumtstF_fl_fb xduumtstF_fl_sb

# All ATLAS libs, C interface only
xduumtst : duumtst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xduumtstF : duumtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xduumtst_sb : duumtst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xduumtstF_sb : duumtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xduumtstF_sl_sb : duumtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xduumtstF_sl_ab : duumtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xduumtstF_fl_ab : duumtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xduumtstF_fl_sb : duumtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xduumtstF_fl_fb : duumtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ duumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xdslv_all : xdslvtst xdslvtstF \
                   xdslvtst_sb xdslvtstF_sys \
                   xdslvtst_sb xdslvtstF_sl_sb \
                   xdslvtstF_fl_ab xdslvtstF_sl_ab \
                   xdslvtstF_fl_fb xdslvtstF_fl_sb

# All ATLAS libs, C interface only
xdslvtst : dslvtst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdslvtstF : dslvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdslvtst_sb : dslvtst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdslvtstF_sb : dslvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdslvtstF_sl_sb : dslvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdslvtstF_sl_ab : dslvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdslvtstF_fl_ab : dslvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdslvtstF_fl_sb : dslvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdslvtstF_fl_fb : dslvtstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xdllt_all : xdllttst xdllttstF \
                   xdllttst_sb xdllttstF_sys \
                   xdllttst_sb xdllttstF_sl_sb \
                   xdllttstF_fl_ab xdllttstF_sl_ab \
                   xdllttstF_fl_fb xdllttstF_fl_sb

# All ATLAS libs, C interface only
xdllttst : dllttst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdllttstF : dllttstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdllttst_sb : dllttst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdllttstF_sb : dllttstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdllttstF_sl_sb : dllttstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdllttstF_sl_ab : dllttstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdllttstF_fl_ab : dllttstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdllttstF_fl_sb : dllttstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdllttstF_fl_fb : dllttstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xdlu_all : xdlutst xdlutstF \
                   xdlutst_sb xdlutstF_sys \
                   xdlutst_sb xdlutstF_sl_sb \
                   xdlutstF_fl_ab xdlutstF_sl_ab \
                   xdlutstF_fl_fb xdlutstF_fl_sb

# All ATLAS libs, C interface only
xdlutst : dlutst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xdlutstF : dlutstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xdlutst_sb : dlutst.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xdlutstF_sb : dlutstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xdlutstF_sl_sb : dlutstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xdlutstF_sl_ab : dlutstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xdlutstF_fl_ab : dlutstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xdlutstF_fl_sb : dlutstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xdlutstF_fl_fb : dlutstF.o dlapack dtstlib dl3lib \
                  dl2lib dl1lib dcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ dlutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xdmmtst : $(INCAdir)/atlas_type.h dgemmtst.o dmmlib dtstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ dgemmtst.o \
              $(TESTlib) $(BLASlib) $(dmmobj) $(ATLASlib) $(LIBS)

xdmmtst_big : $(INCAdir)/atlas_type.h dgemmtst_big.o dmmlib \
              dtstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ dgemmtst_big.o \
                   $(TESTlib) $(BLASlib) $(dmmobj) $(ATLASlib) $(LIBS)
xdgpmmtst : $(INCAdir)/atlas_type.h dgpmmtst.o dmmlib dtstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ dgpmmtst.o \
              $(TESTlib) $(BLASlib) $(dmmobj) $(ATLASlib) $(LIBS)
dgpmmtst.o : $(mySRCdir)/gpmmtst.c $(INCSdir)/atlas_misc.h $(INCAdir)/dmm.h \
                  $(INCSdir)/atlas_lvl3.h $(INCSdir)/atlas_pkblas.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL $(mySRCdir)/gpmmtst.c
	
dtstlib_pt : dtstlib
dtstlib :
	cd $(TSTdir) ; $(MAKE) dlib

dfblas_pt : dfblaslib_pt
dfblaslib_pt :
	cd $(FBLdir) ; $(MAKE) dptlib
dfblas : dfblaslib
dfblaslib :
	cd $(FBLdir) ; $(MAKE) dlib
dcblas_pt : dcblaslib_pt
dcblaslib_pt :
	cd $(CBLdir) ; $(MAKE) dptlib
dcblas : dcblaslib
dcblaslib :
	cd $(CBLdir) ; $(MAKE) dlib

dmmlib_pt : auxlib_pt
	cd $(GMMdir) ; $(MAKE) dlib
dmmlib : auxlib
	cd $(GMMdir) ; $(MAKE) dlib
dpklib : auxlib
	cd $(BLDdir)/src/blas/pklevel3 ; $(MAKE) dlib

dl2lib_pt : dl2lib
	cd $(PTSdir)/blas/level2 ; $(MAKE) dlib
dl2lib : dl1lib auxlib
	cd $(GMVdir) ; $(MAKE) dlib
	cd $(GR1dir) ; $(MAKE) dlib
	cd $(L2Bdir) ; $(MAKE) dlib

dl3lib_pt : dl3lib dmmlib_pt
	cd $(PTSdir)/blas/level3 ; $(MAKE) dlib
dl3lib : dmmlib
	cd $(L3Bdir) ; $(MAKE) dlib

dl1lib_pt : auxlib_pt dl1lib
	cd $(PTSdir)/blas/level1 ; $(MAKE) dlib
dl1lib : auxlib
	cd $(L1Bdir) ; $(MAKE) dlvl1

dlapack :
	cd $(BLDdir)/src/lapack ; $(MAKE) dlib

xdprintblk : dprintblk.o
	$(CLINKER) -o $@ dprintblk.o $(ATLASlib)
dprintblk.o : $(INCSdir)/atlas_mv.h $(INCSdir)/atlas_r1.h \
                   $(INCAdir)/dmm.h $(mySRCdir)/printblk.c
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL $(mySRCdir)/printblk.c

dl1blastst_mike.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL -DATL_USEPTHREADS -DATL_MIKE $(mySRCdir)/l1blastst.c
dl2blastst_mike.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL -DATL_USEPTHREADS -DATL_MIKE $(mySRCdir)/l2blastst.c

dl3blastst_mike.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/l3blastst.c
dinvtst_mike.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/invtst.c
dinvtstF_mike.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/invtst.c
dtrtritst_mike.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/trtritst.c
dtrtritstF_mike.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/trtritst.c
dslvtst_mike.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/slvtst.c
dslvtstF_mike.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/slvtst.c
dlutst_mike.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/lutst.c
dlutstF_mike.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/lutst.c
dllttst_mike.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/llttst.c
dllttstF_mike.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/llttst.c
duumtst_mike.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/uumtst.c
duumtstF_mike.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/uumtst.c

dscaltst_mike.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/scaltst.c

dgemmtst_mike.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DATL_MIKE -DDREAL $(mySRCdir)/gemmtst.c

dl1blastst_pt.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL -DATL_USEPTHREADS $(mySRCdir)/l1blastst.c
dl2blastst_pt.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL -DATL_USEPTHREADS $(mySRCdir)/l2blastst.c

dl3blastst_pt.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DATL_USEPTHREADS -DDREAL $(mySRCdir)/l3blastst.c
dinvtst_pt.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDREAL $(mySRCdir)/invtst.c
dinvtstF_pt.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDREAL $(mySRCdir)/invtst.c
dtrtritst_pt.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDREAL $(mySRCdir)/trtritst.c
dtrtritstF_pt.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDREAL $(mySRCdir)/trtritst.c
dslvtst_pt.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDREAL $(mySRCdir)/slvtst.c
dslvtstF_pt.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDREAL $(mySRCdir)/slvtst.c
dlutst_pt.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDREAL $(mySRCdir)/lutst.c
dlutstF_pt.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDREAL $(mySRCdir)/lutst.c
dllttst_pt.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDREAL $(mySRCdir)/llttst.c
dllttstF_pt.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDREAL $(mySRCdir)/llttst.c
duumtst_pt.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDREAL $(mySRCdir)/uumtst.c
duumtstF_pt.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDREAL $(mySRCdir)/uumtst.c

dscaltst_pt.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DDREAL $(mySRCdir)/scaltst.c

dgemmtst_pt.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DDREAL $(mySRCdir)/gemmtst.c

dl1blastst.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL  $(mySRCdir)/l1blastst.c
dl2blastst.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL  $(mySRCdir)/l2blastst.c

dl3blastst.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT  -DDREAL $(mySRCdir)/l3blastst.c
dinvtst.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDREAL $(mySRCdir)/invtst.c
dinvtstF.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDREAL $(mySRCdir)/invtst.c
dtrtritst.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDREAL $(mySRCdir)/trtritst.c
dtrtritstF.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDREAL $(mySRCdir)/trtritst.c
dslvtst.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDREAL $(mySRCdir)/slvtst.c
dslvtstF.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDREAL $(mySRCdir)/slvtst.c
dlutst.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDREAL $(mySRCdir)/lutst.c
dlutstF.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDREAL $(mySRCdir)/lutst.c
dllttst.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDREAL $(mySRCdir)/llttst.c
dllttstF.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDREAL $(mySRCdir)/llttst.c
duumtst.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDREAL $(mySRCdir)/uumtst.c
duumtstF.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDREAL $(mySRCdir)/uumtst.c

dscaltst.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS)  -DDREAL $(mySRCdir)/scaltst.c

dgemmtst.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS)  -DDREAL $(mySRCdir)/gemmtst.c

dgemmtst_big.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                 $(INCAdir)/dmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL -DTRUST_BIG $(mySRCdir)/gemmtst.c
xcl1blastst_pt_dyn : cl1blastst_pt.o cl1lib_pt ctstlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl1blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcl2blastst_pt_dyn : cl2blastst_pt.o cl2lib_pt ctstlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl2blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcl3blastst_pt_dyn : $(INCAdir)/atlas_type.h cl3blastst_pt.o \
                   ctstlib_pt cl3lib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl3blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcinv_all_pt_dyn : xcinvtst_pt xcinvtstF_pt \
                   xcinvtst_sys_pt xcinvtstF_sys_pt PTshared

xcinvtst_pt_dyn : cinvtst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt PTshared
	rm -f cinvtst_pt.o
	$(MAKE) cinvtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcinvtstF_pt_dyn : clapack ctstlib_pt cl3lib_pt cl2lib_pt \
                   cl1lib_pt ccblas_pt cfblas_pt PTshared
	rm -f cinvtst_pt.o
	$(MAKE) cinvtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xctrtri_all_pt_dyn : xctrtritst_pt xctrtritstF_pt \
                   xctrtritst_sys_pt xctrtritstF_sys_pt PTshared

xctrtritst_pt_dyn : ctrtritst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt PTshared
	rm -f ctrtritst_pt.o
	$(MAKE) ctrtritst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xctrtritstF_pt_dyn : clapack ctstlib_pt cl3lib_pt cl2lib_pt \
                   cl1lib_pt ccblas_pt cfblas_pt PTshared
	rm -f ctrtritst_pt.o
	$(MAKE) ctrtritst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcuum_all_pt_dyn : xcuumtst_pt xcuumtstF_pt \
                   xcuumtst_sys_pt xcuumtstF_sys_pt PTshared

xcuumtst_pt_dyn : cuumtst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt PTshared
	rm -f cuumtst_pt.o
	$(MAKE) cuumtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcuumtstF_pt_dyn : clapack ctstlib_pt cl3lib_pt cl2lib_pt \
                   cl1lib_pt ccblas_pt cfblas_pt PTshared
	rm -f cuumtst_pt.o
	$(MAKE) cuumtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcslv_all_pt_dyn : xcslvtst_pt xcslvtstF_pt \
                   xcslvtst_sys_pt xcslvtstF_sys_pt PTshared

xcslvtst_pt_dyn : cslvtst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt PTshared
	rm -f cslvtst_pt.o
	$(MAKE) cslvtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcslvtstF_pt_dyn : clapack ctstlib_pt cl3lib_pt cl2lib_pt \
                   cl1lib_pt ccblas_pt cfblas_pt PTshared
	rm -f cslvtst_pt.o
	$(MAKE) cslvtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcllt_all_pt_dyn : xcllttst_pt xcllttstF_pt \
                   xcllttst_sys_pt xcllttstF_sys_pt PTshared

xcllttst_pt_dyn : cllttst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt PTshared
	rm -f cllttst_pt.o
	$(MAKE) cllttst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcllttstF_pt_dyn : clapack ctstlib_pt cl3lib_pt cl2lib_pt \
                   cl1lib_pt ccblas_pt cfblas_pt PTshared
	rm -f cllttst_pt.o
	$(MAKE) cllttst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xclu_all_pt_dyn : xclutst_pt xclutstF_pt \
                   xclutst_sys_pt xclutstF_sys_pt PTshared

xclutst_pt_dyn : clutst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt PTshared
	rm -f clutst_pt.o
	$(MAKE) clutst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xclutstF_pt_dyn : clapack ctstlib_pt cl3lib_pt cl2lib_pt \
                   cl1lib_pt ccblas_pt cfblas_pt PTshared
	rm -f clutst_pt.o
	$(MAKE) clutst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcmmtst_pt_dyn : $(INCAdir)/atlas_type.h cgemmtst_pt.o cmmlib_pt ctstlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ cgemmtst_pt.o \
              $(TESTlib) $(cmmobj) $(LIBdir)/libf77blas.so \
              $(LIBdir)/libcblas.so $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)

xcl1blastst_dyn : cl1blastst.o cl1lib ctstlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl1blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcl2blastst_dyn : cl2blastst.o cl2lib ctstlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl2blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcl3blastst_dyn : $(INCAdir)/atlas_type.h cl3blastst.o \
                   ctstlib cl3lib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl3blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcinv_all_dyn : xcinvtst xcinvtstF \
                   xcinvtst_sys xcinvtstF_sys shared

xcinvtst_dyn : cinvtst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas shared
	rm -f cinvtst.o
	$(MAKE) cinvtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcinvtstF_dyn : clapack ctstlib cl3lib cl2lib \
                   cl1lib ccblas cfblas shared
	rm -f cinvtst.o
	$(MAKE) cinvtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xctrtri_all_dyn : xctrtritst xctrtritstF \
                   xctrtritst_sys xctrtritstF_sys shared

xctrtritst_dyn : ctrtritst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas shared
	rm -f ctrtritst.o
	$(MAKE) ctrtritst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xctrtritstF_dyn : clapack ctstlib cl3lib cl2lib \
                   cl1lib ccblas cfblas shared
	rm -f ctrtritst.o
	$(MAKE) ctrtritst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcuum_all_dyn : xcuumtst xcuumtstF \
                   xcuumtst_sys xcuumtstF_sys shared

xcuumtst_dyn : cuumtst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas shared
	rm -f cuumtst.o
	$(MAKE) cuumtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcuumtstF_dyn : clapack ctstlib cl3lib cl2lib \
                   cl1lib ccblas cfblas shared
	rm -f cuumtst.o
	$(MAKE) cuumtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcslv_all_dyn : xcslvtst xcslvtstF \
                   xcslvtst_sys xcslvtstF_sys shared

xcslvtst_dyn : cslvtst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas shared
	rm -f cslvtst.o
	$(MAKE) cslvtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcslvtstF_dyn : clapack ctstlib cl3lib cl2lib \
                   cl1lib ccblas cfblas shared
	rm -f cslvtst.o
	$(MAKE) cslvtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcllt_all_dyn : xcllttst xcllttstF \
                   xcllttst_sys xcllttstF_sys shared

xcllttst_dyn : cllttst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas shared
	rm -f cllttst.o
	$(MAKE) cllttst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcllttstF_dyn : clapack ctstlib cl3lib cl2lib \
                   cl1lib ccblas cfblas shared
	rm -f cllttst.o
	$(MAKE) cllttst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xclu_all_dyn : xclutst xclutstF \
                   xclutst_sys xclutstF_sys shared

xclutst_dyn : clutst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas shared
	rm -f clutst.o
	$(MAKE) clutst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xclutstF_dyn : clapack ctstlib cl3lib cl2lib \
                   cl1lib ccblas cfblas shared
	rm -f clutst.o
	$(MAKE) clutst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xcmmtst_dyn : $(INCAdir)/atlas_type.h cgemmtst.o cmmlib ctstlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ cgemmtst.o \
              $(TESTlib) $(cmmobj) $(LIBdir)/libf77blas.so \
              $(LIBdir)/libcblas.so $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)


xcl1blastst_mike : cl1blastst_mike.o cl1lib_pt ctstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl1blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xcl2blastst_mike : cl2blastst_pt.o cl2lib_pt ctstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl2blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xcl3blastst_mike : $(INCAdir)/atlas_type.h cl3blastst_pt.o \
                   ctstlib_pt cl3lib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl3blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)

xcl1blastst_pt : cl1blastst_pt.o cl1lib_pt ctstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl1blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xcl2blastst_pt : cl2blastst_pt.o cl2lib_pt ctstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl2blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xcl3blastst_pt : $(INCAdir)/atlas_type.h cl3blastst_pt.o \
                   ctstlib_pt cl3lib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl3blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
csanity_test_pt: xcinvtst_pt xcslvtst_pt xctrtritst_pt xcuumtst_pt
	$(ATLRUN) $(BINdir) xcslvtst_pt -n 167 -r 83 -O 2 c r \
                  >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xcslvtst_pt -n 167 -r 83 -O 2 c r -U 2 u l \
                  >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xctrtritst_pt -n 167 -O 2 c r -U 2 u l \
                  -D 2 n u >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xcuumtst_pt -n 167 -O 2 c r -U 2 u l \
                  >> $(BINdir)/ptsanity.out
xcinv_all_pt : xcinvtst_pt xcinvtstF_pt \
                   xcinvtst_sb_pt xcinvtstF_sys_pt \
                   xcinvtst_sb_pt xcinvtstF_sl_sb_pt \
                   xcinvtstF_fl_ab_pt xcinvtstF_sl_ab_pt \
                   xcinvtstF_fl_fb_pt xcinvtstF_fl_sb_pt

# All ATLAS libs, C interface only
xcinvtst_pt : cinvtst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xcinvtstF_pt : cinvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xcinvtst_sb_pt : cinvtst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xcinvtstF_sb_pt : cinvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xcinvtstF_sl_sb_pt : cinvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xcinvtstF_sl_ab_pt : cinvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xcinvtstF_fl_ab_pt : cinvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xcinvtstF_fl_sb_pt : cinvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xcinvtstF_fl_fb_pt : cinvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xctrtri_all_pt : xctrtritst_pt xctrtritstF_pt \
                   xctrtritst_sb_pt xctrtritstF_sys_pt \
                   xctrtritst_sb_pt xctrtritstF_sl_sb_pt \
                   xctrtritstF_fl_ab_pt xctrtritstF_sl_ab_pt \
                   xctrtritstF_fl_fb_pt xctrtritstF_fl_sb_pt

# All ATLAS libs, C interface only
xctrtritst_pt : ctrtritst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xctrtritstF_pt : ctrtritstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xctrtritst_sb_pt : ctrtritst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xctrtritstF_sb_pt : ctrtritstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xctrtritstF_sl_sb_pt : ctrtritstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xctrtritstF_sl_ab_pt : ctrtritstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xctrtritstF_fl_ab_pt : ctrtritstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xctrtritstF_fl_sb_pt : ctrtritstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xctrtritstF_fl_fb_pt : ctrtritstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xcuum_all_pt : xcuumtst_pt xcuumtstF_pt \
                   xcuumtst_sb_pt xcuumtstF_sys_pt \
                   xcuumtst_sb_pt xcuumtstF_sl_sb_pt \
                   xcuumtstF_fl_ab_pt xcuumtstF_sl_ab_pt \
                   xcuumtstF_fl_fb_pt xcuumtstF_fl_sb_pt

# All ATLAS libs, C interface only
xcuumtst_pt : cuumtst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xcuumtstF_pt : cuumtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xcuumtst_sb_pt : cuumtst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xcuumtstF_sb_pt : cuumtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xcuumtstF_sl_sb_pt : cuumtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xcuumtstF_sl_ab_pt : cuumtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xcuumtstF_fl_ab_pt : cuumtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xcuumtstF_fl_sb_pt : cuumtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xcuumtstF_fl_fb_pt : cuumtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xcslv_all_pt : xcslvtst_pt xcslvtstF_pt \
                   xcslvtst_sb_pt xcslvtstF_sys_pt \
                   xcslvtst_sb_pt xcslvtstF_sl_sb_pt \
                   xcslvtstF_fl_ab_pt xcslvtstF_sl_ab_pt \
                   xcslvtstF_fl_fb_pt xcslvtstF_fl_sb_pt

# All ATLAS libs, C interface only
xcslvtst_pt : cslvtst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xcslvtstF_pt : cslvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xcslvtst_sb_pt : cslvtst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xcslvtstF_sb_pt : cslvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xcslvtstF_sl_sb_pt : cslvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xcslvtstF_sl_ab_pt : cslvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xcslvtstF_fl_ab_pt : cslvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xcslvtstF_fl_sb_pt : cslvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xcslvtstF_fl_fb_pt : cslvtstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xcllt_all_pt : xcllttst_pt xcllttstF_pt \
                   xcllttst_sb_pt xcllttstF_sys_pt \
                   xcllttst_sb_pt xcllttstF_sl_sb_pt \
                   xcllttstF_fl_ab_pt xcllttstF_sl_ab_pt \
                   xcllttstF_fl_fb_pt xcllttstF_fl_sb_pt

# All ATLAS libs, C interface only
xcllttst_pt : cllttst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xcllttstF_pt : cllttstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xcllttst_sb_pt : cllttst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xcllttstF_sb_pt : cllttstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xcllttstF_sl_sb_pt : cllttstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xcllttstF_sl_ab_pt : cllttstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xcllttstF_fl_ab_pt : cllttstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xcllttstF_fl_sb_pt : cllttstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xcllttstF_fl_fb_pt : cllttstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xclu_all_pt : xclutst_pt xclutstF_pt \
                   xclutst_sb_pt xclutstF_sys_pt \
                   xclutst_sb_pt xclutstF_sl_sb_pt \
                   xclutstF_fl_ab_pt xclutstF_sl_ab_pt \
                   xclutstF_fl_fb_pt xclutstF_fl_sb_pt

# All ATLAS libs, C interface only
xclutst_pt : clutst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xclutstF_pt : clutstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xclutst_sb_pt : clutst_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xclutstF_sb_pt : clutstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xclutstF_sl_sb_pt : clutstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xclutstF_sl_ab_pt : clutstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xclutstF_fl_ab_pt : clutstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xclutstF_fl_sb_pt : clutstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xclutstF_fl_fb_pt : clutstF_pt.o clapack ctstlib_pt cl3lib_pt \
                  cl2lib_pt cl1lib_pt ccblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xcmmtst_pt : $(INCAdir)/atlas_type.h cgemmtst_pt.o cmmlib_pt ctstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ cgemmtst_pt.o \
              $(TESTlib) $(BLASlib) $(cmmobj) $(ATLASlib) $(LIBS)

xcl1blastst : cl1blastst.o cl1lib ctstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl1blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xcl2blastst : cl2blastst.o cl2lib ctstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl2blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xcl3blastst : $(INCAdir)/atlas_type.h cl3blastst.o \
                   ctstlib cl3lib
	$(FLINKER) $(FCLINKFLAGS) -o $@ cl3blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
csanity_test: xcinvtst xcslvtst xctrtritst xcuumtst
	$(ATLRUN) $(BINdir) xcslvtst -n 167 -r 83 -O 2 c r \
                  >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xcslvtst -n 167 -r 83 -O 2 c r -U 2 u l \
                  >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xctrtritst -n 167 -O 2 c r -U 2 u l \
                  -D 2 n u >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xcuumtst -n 167 -O 2 c r -U 2 u l \
                  >> $(BINdir)/sanity.out
xcinv_all : xcinvtst xcinvtstF \
                   xcinvtst_sb xcinvtstF_sys \
                   xcinvtst_sb xcinvtstF_sl_sb \
                   xcinvtstF_fl_ab xcinvtstF_sl_ab \
                   xcinvtstF_fl_fb xcinvtstF_fl_sb

# All ATLAS libs, C interface only
xcinvtst : cinvtst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xcinvtstF : cinvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xcinvtst_sb : cinvtst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xcinvtstF_sb : cinvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xcinvtstF_sl_sb : cinvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xcinvtstF_sl_ab : cinvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xcinvtstF_fl_ab : cinvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xcinvtstF_fl_sb : cinvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xcinvtstF_fl_fb : cinvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xctrtri_all : xctrtritst xctrtritstF \
                   xctrtritst_sb xctrtritstF_sys \
                   xctrtritst_sb xctrtritstF_sl_sb \
                   xctrtritstF_fl_ab xctrtritstF_sl_ab \
                   xctrtritstF_fl_fb xctrtritstF_fl_sb

# All ATLAS libs, C interface only
xctrtritst : ctrtritst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xctrtritstF : ctrtritstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xctrtritst_sb : ctrtritst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xctrtritstF_sb : ctrtritstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xctrtritstF_sl_sb : ctrtritstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xctrtritstF_sl_ab : ctrtritstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xctrtritstF_fl_ab : ctrtritstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xctrtritstF_fl_sb : ctrtritstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xctrtritstF_fl_fb : ctrtritstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ctrtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xcuum_all : xcuumtst xcuumtstF \
                   xcuumtst_sb xcuumtstF_sys \
                   xcuumtst_sb xcuumtstF_sl_sb \
                   xcuumtstF_fl_ab xcuumtstF_sl_ab \
                   xcuumtstF_fl_fb xcuumtstF_fl_sb

# All ATLAS libs, C interface only
xcuumtst : cuumtst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xcuumtstF : cuumtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xcuumtst_sb : cuumtst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xcuumtstF_sb : cuumtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xcuumtstF_sl_sb : cuumtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xcuumtstF_sl_ab : cuumtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xcuumtstF_fl_ab : cuumtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xcuumtstF_fl_sb : cuumtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xcuumtstF_fl_fb : cuumtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cuumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xcslv_all : xcslvtst xcslvtstF \
                   xcslvtst_sb xcslvtstF_sys \
                   xcslvtst_sb xcslvtstF_sl_sb \
                   xcslvtstF_fl_ab xcslvtstF_sl_ab \
                   xcslvtstF_fl_fb xcslvtstF_fl_sb

# All ATLAS libs, C interface only
xcslvtst : cslvtst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xcslvtstF : cslvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xcslvtst_sb : cslvtst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xcslvtstF_sb : cslvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xcslvtstF_sl_sb : cslvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xcslvtstF_sl_ab : cslvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xcslvtstF_fl_ab : cslvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xcslvtstF_fl_sb : cslvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xcslvtstF_fl_fb : cslvtstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xcllt_all : xcllttst xcllttstF \
                   xcllttst_sb xcllttstF_sys \
                   xcllttst_sb xcllttstF_sl_sb \
                   xcllttstF_fl_ab xcllttstF_sl_ab \
                   xcllttstF_fl_fb xcllttstF_fl_sb

# All ATLAS libs, C interface only
xcllttst : cllttst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xcllttstF : cllttstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xcllttst_sb : cllttst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xcllttstF_sb : cllttstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xcllttstF_sl_sb : cllttstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xcllttstF_sl_ab : cllttstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xcllttstF_fl_ab : cllttstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xcllttstF_fl_sb : cllttstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xcllttstF_fl_fb : cllttstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ cllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xclu_all : xclutst xclutstF \
                   xclutst_sb xclutstF_sys \
                   xclutst_sb xclutstF_sl_sb \
                   xclutstF_fl_ab xclutstF_sl_ab \
                   xclutstF_fl_fb xclutstF_fl_sb

# All ATLAS libs, C interface only
xclutst : clutst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xclutstF : clutstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xclutst_sb : clutst.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xclutstF_sb : clutstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xclutstF_sl_sb : clutstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xclutstF_sl_ab : clutstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xclutstF_fl_ab : clutstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xclutstF_fl_sb : clutstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xclutstF_fl_fb : clutstF.o clapack ctstlib cl3lib \
                  cl2lib cl1lib ccblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ clutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xcmmtst : $(INCAdir)/atlas_type.h cgemmtst.o cmmlib ctstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ cgemmtst.o \
              $(TESTlib) $(BLASlib) $(cmmobj) $(ATLASlib) $(LIBS)

xcmmtst_big : $(INCAdir)/atlas_type.h cgemmtst_big.o cmmlib \
              ctstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ cgemmtst_big.o \
                   $(TESTlib) $(BLASlib) $(cmmobj) $(ATLASlib) $(LIBS)
xcgpmmtst : $(INCAdir)/atlas_type.h cgpmmtst.o cmmlib ctstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ cgpmmtst.o \
              $(TESTlib) $(BLASlib) $(cmmobj) $(ATLASlib) $(LIBS)
cgpmmtst.o : $(mySRCdir)/gpmmtst.c $(INCSdir)/atlas_misc.h $(INCAdir)/cmm.h \
                  $(INCSdir)/atlas_lvl3.h $(INCSdir)/atlas_pkblas.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSCPLX $(mySRCdir)/gpmmtst.c
	
ctstlib_pt : ctstlib
ctstlib :
	cd $(TSTdir) ; $(MAKE) clib

cfblas_pt : cfblaslib_pt
cfblaslib_pt :
	cd $(FBLdir) ; $(MAKE) cptlib
cfblas : cfblaslib
cfblaslib :
	cd $(FBLdir) ; $(MAKE) clib
ccblas_pt : ccblaslib_pt
ccblaslib_pt :
	cd $(CBLdir) ; $(MAKE) cptlib
ccblas : ccblaslib
ccblaslib :
	cd $(CBLdir) ; $(MAKE) clib

cmmlib_pt : auxlib_pt
	cd $(GMMdir) ; $(MAKE) clib
cmmlib : auxlib
	cd $(GMMdir) ; $(MAKE) clib
cpklib : auxlib
	cd $(BLDdir)/src/blas/pklevel3 ; $(MAKE) clib

cl2lib_pt : cl2lib
	cd $(PTSdir)/blas/level2 ; $(MAKE) clib
cl2lib : cl1lib auxlib
	cd $(GMVdir) ; $(MAKE) clib
	cd $(GR1dir) ; $(MAKE) clib
	cd $(L2Bdir) ; $(MAKE) clib

cl3lib_pt : cl3lib cmmlib_pt
	cd $(PTSdir)/blas/level3 ; $(MAKE) clib
cl3lib : cmmlib
	cd $(L3Bdir) ; $(MAKE) clib

cl1lib_pt : auxlib_pt cl1lib
	cd $(PTSdir)/blas/level1 ; $(MAKE) clib
cl1lib : auxlib
	cd $(L1Bdir) ; $(MAKE) clvl1

clapack :
	cd $(BLDdir)/src/lapack ; $(MAKE) clib

xcprintblk : cprintblk.o
	$(CLINKER) -o $@ cprintblk.o $(ATLASlib)
cprintblk.o : $(INCSdir)/atlas_mv.h $(INCSdir)/atlas_r1.h \
                   $(INCAdir)/cmm.h $(mySRCdir)/printblk.c
	$(ICC) -o $@ -c $(ICCFLAGS) -DSCPLX $(mySRCdir)/printblk.c

cl1blastst_mike.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSCPLX -DATL_USEPTHREADS -DATL_MIKE $(mySRCdir)/l1blastst.c
cl2blastst_mike.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSCPLX -DATL_USEPTHREADS -DATL_MIKE $(mySRCdir)/l2blastst.c

cl3blastst_mike.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/l3blastst.c
cinvtst_mike.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/invtst.c
cinvtstF_mike.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/invtst.c
ctrtritst_mike.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/trtritst.c
ctrtritstF_mike.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/trtritst.c
cslvtst_mike.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/slvtst.c
cslvtstF_mike.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/slvtst.c
clutst_mike.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/lutst.c
clutstF_mike.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/lutst.c
cllttst_mike.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/llttst.c
cllttstF_mike.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/llttst.c
cuumtst_mike.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/uumtst.c
cuumtstF_mike.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/uumtst.c

cscaltst_mike.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/scaltst.c

cgemmtst_mike.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DATL_MIKE -DSCPLX $(mySRCdir)/gemmtst.c

cl1blastst_pt.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSCPLX -DATL_USEPTHREADS $(mySRCdir)/l1blastst.c
cl2blastst_pt.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSCPLX -DATL_USEPTHREADS $(mySRCdir)/l2blastst.c

cl3blastst_pt.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/l3blastst.c
cinvtst_pt.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/invtst.c
cinvtstF_pt.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/invtst.c
ctrtritst_pt.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/trtritst.c
ctrtritstF_pt.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/trtritst.c
cslvtst_pt.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/slvtst.c
cslvtstF_pt.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/slvtst.c
clutst_pt.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/lutst.c
clutstF_pt.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/lutst.c
cllttst_pt.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/llttst.c
cllttstF_pt.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/llttst.c
cuumtst_pt.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/uumtst.c
cuumtstF_pt.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/uumtst.c

cscaltst_pt.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/scaltst.c

cgemmtst_pt.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DSCPLX $(mySRCdir)/gemmtst.c

cl1blastst.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSCPLX  $(mySRCdir)/l1blastst.c
cl2blastst.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSCPLX  $(mySRCdir)/l2blastst.c

cl3blastst.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT  -DSCPLX $(mySRCdir)/l3blastst.c
cinvtst.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSCPLX $(mySRCdir)/invtst.c
cinvtstF.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSCPLX $(mySRCdir)/invtst.c
ctrtritst.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSCPLX $(mySRCdir)/trtritst.c
ctrtritstF.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSCPLX $(mySRCdir)/trtritst.c
cslvtst.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSCPLX $(mySRCdir)/slvtst.c
cslvtstF.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSCPLX $(mySRCdir)/slvtst.c
clutst.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSCPLX $(mySRCdir)/lutst.c
clutstF.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSCPLX $(mySRCdir)/lutst.c
cllttst.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSCPLX $(mySRCdir)/llttst.c
cllttstF.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSCPLX $(mySRCdir)/llttst.c
cuumtst.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DSCPLX $(mySRCdir)/uumtst.c
cuumtstF.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DSCPLX $(mySRCdir)/uumtst.c

cscaltst.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS)  -DSCPLX $(mySRCdir)/scaltst.c

cgemmtst.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS)  -DSCPLX $(mySRCdir)/gemmtst.c

cgemmtst_big.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                 $(INCAdir)/cmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSCPLX -DTRUST_BIG $(mySRCdir)/gemmtst.c
xzl1blastst_pt_dyn : zl1blastst_pt.o zl1lib_pt ztstlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl1blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzl2blastst_pt_dyn : zl2blastst_pt.o zl2lib_pt ztstlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl2blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzl3blastst_pt_dyn : $(INCAdir)/atlas_type.h zl3blastst_pt.o \
                   ztstlib_pt zl3lib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl3blastst_pt.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzinv_all_pt_dyn : xzinvtst_pt xzinvtstF_pt \
                   xzinvtst_sys_pt xzinvtstF_sys_pt PTshared

xzinvtst_pt_dyn : zinvtst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt PTshared
	rm -f zinvtst_pt.o
	$(MAKE) zinvtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzinvtstF_pt_dyn : zlapack ztstlib_pt zl3lib_pt zl2lib_pt \
                   zl1lib_pt zcblas_pt zfblas_pt PTshared
	rm -f zinvtst_pt.o
	$(MAKE) zinvtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xztrtri_all_pt_dyn : xztrtritst_pt xztrtritstF_pt \
                   xztrtritst_sys_pt xztrtritstF_sys_pt PTshared

xztrtritst_pt_dyn : ztrtritst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt PTshared
	rm -f ztrtritst_pt.o
	$(MAKE) ztrtritst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xztrtritstF_pt_dyn : zlapack ztstlib_pt zl3lib_pt zl2lib_pt \
                   zl1lib_pt zcblas_pt zfblas_pt PTshared
	rm -f ztrtritst_pt.o
	$(MAKE) ztrtritst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzuum_all_pt_dyn : xzuumtst_pt xzuumtstF_pt \
                   xzuumtst_sys_pt xzuumtstF_sys_pt PTshared

xzuumtst_pt_dyn : zuumtst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt PTshared
	rm -f zuumtst_pt.o
	$(MAKE) zuumtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzuumtstF_pt_dyn : zlapack ztstlib_pt zl3lib_pt zl2lib_pt \
                   zl1lib_pt zcblas_pt zfblas_pt PTshared
	rm -f zuumtst_pt.o
	$(MAKE) zuumtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzslv_all_pt_dyn : xzslvtst_pt xzslvtstF_pt \
                   xzslvtst_sys_pt xzslvtstF_sys_pt PTshared

xzslvtst_pt_dyn : zslvtst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt PTshared
	rm -f zslvtst_pt.o
	$(MAKE) zslvtst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzslvtstF_pt_dyn : zlapack ztstlib_pt zl3lib_pt zl2lib_pt \
                   zl1lib_pt zcblas_pt zfblas_pt PTshared
	rm -f zslvtst_pt.o
	$(MAKE) zslvtst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzllt_all_pt_dyn : xzllttst_pt xzllttstF_pt \
                   xzllttst_sys_pt xzllttstF_sys_pt PTshared

xzllttst_pt_dyn : zllttst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt PTshared
	rm -f zllttst_pt.o
	$(MAKE) zllttst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzllttstF_pt_dyn : zlapack ztstlib_pt zl3lib_pt zl2lib_pt \
                   zl1lib_pt zcblas_pt zfblas_pt PTshared
	rm -f zllttst_pt.o
	$(MAKE) zllttst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzlu_all_pt_dyn : xzlutst_pt xzlutstF_pt \
                   xzlutst_sys_pt xzlutstF_sys_pt PTshared

xzlutst_pt_dyn : zlutst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt PTshared
	rm -f zlutst_pt.o
	$(MAKE) zlutst_pt.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutst_pt.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzlutstF_pt_dyn : zlapack ztstlib_pt zl3lib_pt zl2lib_pt \
                   zl1lib_pt zcblas_pt zfblas_pt PTshared
	rm -f zlutst_pt.o
	$(MAKE) zlutst_pt.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutst_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzmmtst_pt_dyn : $(INCAdir)/atlas_type.h zgemmtst_pt.o zmmlib_pt ztstlib_pt PTshared
	$(FLINKER) $(FCLINKFLAGS) -o $@ zgemmtst_pt.o \
              $(TESTlib) $(zmmobj) $(LIBdir)/libf77blas.so \
              $(LIBdir)/libcblas.so $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)

xzl1blastst_dyn : zl1blastst.o zl1lib ztstlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl1blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzl2blastst_dyn : zl2blastst.o zl2lib ztstlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl2blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzl3blastst_dyn : $(INCAdir)/atlas_type.h zl3blastst.o \
                   ztstlib zl3lib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl3blastst.o \
                   $(TESTlib) $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzinv_all_dyn : xzinvtst xzinvtstF \
                   xzinvtst_sys xzinvtstF_sys shared

xzinvtst_dyn : zinvtst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas shared
	rm -f zinvtst.o
	$(MAKE) zinvtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzinvtstF_dyn : zlapack ztstlib zl3lib zl2lib \
                   zl1lib zcblas zfblas shared
	rm -f zinvtst.o
	$(MAKE) zinvtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xztrtri_all_dyn : xztrtritst xztrtritstF \
                   xztrtritst_sys xztrtritstF_sys shared

xztrtritst_dyn : ztrtritst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas shared
	rm -f ztrtritst.o
	$(MAKE) ztrtritst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xztrtritstF_dyn : zlapack ztstlib zl3lib zl2lib \
                   zl1lib zcblas zfblas shared
	rm -f ztrtritst.o
	$(MAKE) ztrtritst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzuum_all_dyn : xzuumtst xzuumtstF \
                   xzuumtst_sys xzuumtstF_sys shared

xzuumtst_dyn : zuumtst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas shared
	rm -f zuumtst.o
	$(MAKE) zuumtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzuumtstF_dyn : zlapack ztstlib zl3lib zl2lib \
                   zl1lib zcblas zfblas shared
	rm -f zuumtst.o
	$(MAKE) zuumtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzslv_all_dyn : xzslvtst xzslvtstF \
                   xzslvtst_sys xzslvtstF_sys shared

xzslvtst_dyn : zslvtst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas shared
	rm -f zslvtst.o
	$(MAKE) zslvtst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzslvtstF_dyn : zlapack ztstlib zl3lib zl2lib \
                   zl1lib zcblas zfblas shared
	rm -f zslvtst.o
	$(MAKE) zslvtst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzllt_all_dyn : xzllttst xzllttstF \
                   xzllttst_sys xzllttstF_sys shared

xzllttst_dyn : zllttst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas shared
	rm -f zllttst.o
	$(MAKE) zllttst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzllttstF_dyn : zlapack ztstlib zl3lib zl2lib \
                   zl1lib zcblas zfblas shared
	rm -f zllttst.o
	$(MAKE) zllttst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzlu_all_dyn : xzlutst xzlutstF \
                   xzlutst_sys xzlutstF_sys shared

xzlutst_dyn : zlutst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas shared
	rm -f zlutst.o
	$(MAKE) zlutst.o
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutst.o \
                   $(TESTlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzlutstF_dyn : zlapack ztstlib zl3lib zl2lib \
                   zl1lib zcblas zfblas shared
	rm -f zlutst.o
	$(MAKE) zlutst.o intf=-DTimeF77
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutst.o \
                   $(TESTlib) $(FLAPACKlib) $(LIBdir)/liblapack.so \
                   $(LIBdir)/libf77blas.so $(LIBdir)/libcblas.so \
                   $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)
xzmmtst_dyn : $(INCAdir)/atlas_type.h zgemmtst.o zmmlib ztstlib shared
	$(FLINKER) $(FCLINKFLAGS) -o $@ zgemmtst.o \
              $(TESTlib) $(zmmobj) $(LIBdir)/libf77blas.so \
              $(LIBdir)/libcblas.so $(LIBdir)/libatlas.so -Wl,--rpath $(LIBdir)


xzl1blastst_mike : zl1blastst_mike.o zl1lib_pt ztstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl1blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xzl2blastst_mike : zl2blastst_pt.o zl2lib_pt ztstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl2blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xzl3blastst_mike : $(INCAdir)/atlas_type.h zl3blastst_pt.o \
                   ztstlib_pt zl3lib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl3blastst_mike.o $(MIKElib) \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)

xzl1blastst_pt : zl1blastst_pt.o zl1lib_pt ztstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl1blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xzl2blastst_pt : zl2blastst_pt.o zl2lib_pt ztstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl2blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xzl3blastst_pt : $(INCAdir)/atlas_type.h zl3blastst_pt.o \
                   ztstlib_pt zl3lib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl3blastst_pt.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
zsanity_test_pt: xzinvtst_pt xzslvtst_pt xztrtritst_pt xzuumtst_pt
	$(ATLRUN) $(BINdir) xzslvtst_pt -n 167 -r 83 -O 2 c r \
                  >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xzslvtst_pt -n 167 -r 83 -O 2 c r -U 2 u l \
                  >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xztrtritst_pt -n 167 -O 2 c r -U 2 u l \
                  -D 2 n u >> $(BINdir)/ptsanity.out
	$(ATLRUN) $(BINdir) xzuumtst_pt -n 167 -O 2 c r -U 2 u l \
                  >> $(BINdir)/ptsanity.out
xzinv_all_pt : xzinvtst_pt xzinvtstF_pt \
                   xzinvtst_sb_pt xzinvtstF_sys_pt \
                   xzinvtst_sb_pt xzinvtstF_sl_sb_pt \
                   xzinvtstF_fl_ab_pt xzinvtstF_sl_ab_pt \
                   xzinvtstF_fl_fb_pt xzinvtstF_fl_sb_pt

# All ATLAS libs, C interface only
xzinvtst_pt : zinvtst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzinvtstF_pt : zinvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzinvtst_sb_pt : zinvtst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzinvtstF_sb_pt : zinvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzinvtstF_sl_sb_pt : zinvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzinvtstF_sl_ab_pt : zinvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzinvtstF_fl_ab_pt : zinvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzinvtstF_fl_sb_pt : zinvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzinvtstF_fl_fb_pt : zinvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xztrtri_all_pt : xztrtritst_pt xztrtritstF_pt \
                   xztrtritst_sb_pt xztrtritstF_sys_pt \
                   xztrtritst_sb_pt xztrtritstF_sl_sb_pt \
                   xztrtritstF_fl_ab_pt xztrtritstF_sl_ab_pt \
                   xztrtritstF_fl_fb_pt xztrtritstF_fl_sb_pt

# All ATLAS libs, C interface only
xztrtritst_pt : ztrtritst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xztrtritstF_pt : ztrtritstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xztrtritst_sb_pt : ztrtritst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xztrtritstF_sb_pt : ztrtritstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xztrtritstF_sl_sb_pt : ztrtritstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xztrtritstF_sl_ab_pt : ztrtritstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xztrtritstF_fl_ab_pt : ztrtritstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xztrtritstF_fl_sb_pt : ztrtritstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xztrtritstF_fl_fb_pt : ztrtritstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xzuum_all_pt : xzuumtst_pt xzuumtstF_pt \
                   xzuumtst_sb_pt xzuumtstF_sys_pt \
                   xzuumtst_sb_pt xzuumtstF_sl_sb_pt \
                   xzuumtstF_fl_ab_pt xzuumtstF_sl_ab_pt \
                   xzuumtstF_fl_fb_pt xzuumtstF_fl_sb_pt

# All ATLAS libs, C interface only
xzuumtst_pt : zuumtst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzuumtstF_pt : zuumtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzuumtst_sb_pt : zuumtst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzuumtstF_sb_pt : zuumtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzuumtstF_sl_sb_pt : zuumtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzuumtstF_sl_ab_pt : zuumtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzuumtstF_fl_ab_pt : zuumtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzuumtstF_fl_sb_pt : zuumtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzuumtstF_fl_fb_pt : zuumtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xzslv_all_pt : xzslvtst_pt xzslvtstF_pt \
                   xzslvtst_sb_pt xzslvtstF_sys_pt \
                   xzslvtst_sb_pt xzslvtstF_sl_sb_pt \
                   xzslvtstF_fl_ab_pt xzslvtstF_sl_ab_pt \
                   xzslvtstF_fl_fb_pt xzslvtstF_fl_sb_pt

# All ATLAS libs, C interface only
xzslvtst_pt : zslvtst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzslvtstF_pt : zslvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzslvtst_sb_pt : zslvtst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzslvtstF_sb_pt : zslvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzslvtstF_sl_sb_pt : zslvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzslvtstF_sl_ab_pt : zslvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzslvtstF_fl_ab_pt : zslvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzslvtstF_fl_sb_pt : zslvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzslvtstF_fl_fb_pt : zslvtstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xzllt_all_pt : xzllttst_pt xzllttstF_pt \
                   xzllttst_sb_pt xzllttstF_sys_pt \
                   xzllttst_sb_pt xzllttstF_sl_sb_pt \
                   xzllttstF_fl_ab_pt xzllttstF_sl_ab_pt \
                   xzllttstF_fl_fb_pt xzllttstF_fl_sb_pt

# All ATLAS libs, C interface only
xzllttst_pt : zllttst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzllttstF_pt : zllttstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzllttst_sb_pt : zllttst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzllttstF_sb_pt : zllttstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzllttstF_sl_sb_pt : zllttstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzllttstF_sl_ab_pt : zllttstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzllttstF_fl_ab_pt : zllttstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzllttstF_fl_sb_pt : zllttstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzllttstF_fl_fb_pt : zllttstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xzlu_all_pt : xzlutst_pt xzlutstF_pt \
                   xzlutst_sb_pt xzlutstF_sys_pt \
                   xzlutst_sb_pt xzlutstF_sl_sb_pt \
                   xzlutstF_fl_ab_pt xzlutstF_sl_ab_pt \
                   xzlutstF_fl_fb_pt xzlutstF_fl_sb_pt

# All ATLAS libs, C interface only
xzlutst_pt : zlutst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzlutstF_pt : zlutstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(PTCBLASlib) $(PTF77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzlutst_sb_pt : zlutst_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutst_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzlutstF_sb_pt : zlutstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF_pt.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzlutstF_sl_sb_pt : zlutstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzlutstF_sl_ab_pt : zlutstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF_pt.o \
                   $(TESTlib) $(SLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzlutstF_fl_ab_pt : zlutstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(PTF77BLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzlutstF_fl_sb_pt : zlutstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzlutstF_fl_fb_pt : zlutstF_pt.o zlapack ztstlib_pt zl3lib_pt \
                  zl2lib_pt zl1lib_pt zcblas_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF_pt.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(PTCBLASlib) $(ATLASlib) $(LIBS)

xzmmtst_pt : $(INCAdir)/atlas_type.h zgemmtst_pt.o zmmlib_pt ztstlib_pt
	$(FLINKER) $(FCLINKFLAGS) -o $@ zgemmtst_pt.o \
              $(TESTlib) $(BLASlib) $(zmmobj) $(ATLASlib) $(LIBS)

xzl1blastst : zl1blastst.o zl1lib ztstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl1blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xzl2blastst : zl2blastst.o zl2lib ztstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl2blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
xzl3blastst : $(INCAdir)/atlas_type.h zl3blastst.o \
                   ztstlib zl3lib
	$(FLINKER) $(FCLINKFLAGS) -o $@ zl3blastst.o \
                   $(TESTlib) $(BLASlib) $(ATLASlib) $(LIBS)
zsanity_test: xzinvtst xzslvtst xztrtritst xzuumtst
	$(ATLRUN) $(BINdir) xzslvtst -n 167 -r 83 -O 2 c r \
                  >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xzslvtst -n 167 -r 83 -O 2 c r -U 2 u l \
                  >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xztrtritst -n 167 -O 2 c r -U 2 u l \
                  -D 2 n u >> $(BINdir)/sanity.out
	$(ATLRUN) $(BINdir) xzuumtst -n 167 -O 2 c r -U 2 u l \
                  >> $(BINdir)/sanity.out
xzinv_all : xzinvtst xzinvtstF \
                   xzinvtst_sb xzinvtstF_sys \
                   xzinvtst_sb xzinvtstF_sl_sb \
                   xzinvtstF_fl_ab xzinvtstF_sl_ab \
                   xzinvtstF_fl_fb xzinvtstF_fl_sb

# All ATLAS libs, C interface only
xzinvtst : zinvtst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzinvtstF : zinvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzinvtst_sb : zinvtst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzinvtstF_sb : zinvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzinvtstF_sl_sb : zinvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzinvtstF_sl_ab : zinvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzinvtstF_fl_ab : zinvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzinvtstF_fl_sb : zinvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzinvtstF_fl_fb : zinvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zinvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xztrtri_all : xztrtritst xztrtritstF \
                   xztrtritst_sb xztrtritstF_sys \
                   xztrtritst_sb xztrtritstF_sl_sb \
                   xztrtritstF_fl_ab xztrtritstF_sl_ab \
                   xztrtritstF_fl_fb xztrtritstF_fl_sb

# All ATLAS libs, C interface only
xztrtritst : ztrtritst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xztrtritstF : ztrtritstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xztrtritst_sb : ztrtritst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xztrtritstF_sb : ztrtritstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xztrtritstF_sl_sb : ztrtritstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xztrtritstF_sl_ab : ztrtritstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xztrtritstF_fl_ab : ztrtritstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xztrtritstF_fl_sb : ztrtritstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xztrtritstF_fl_fb : ztrtritstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ ztrtritstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xzuum_all : xzuumtst xzuumtstF \
                   xzuumtst_sb xzuumtstF_sys \
                   xzuumtst_sb xzuumtstF_sl_sb \
                   xzuumtstF_fl_ab xzuumtstF_sl_ab \
                   xzuumtstF_fl_fb xzuumtstF_fl_sb

# All ATLAS libs, C interface only
xzuumtst : zuumtst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzuumtstF : zuumtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzuumtst_sb : zuumtst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzuumtstF_sb : zuumtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzuumtstF_sl_sb : zuumtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzuumtstF_sl_ab : zuumtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzuumtstF_fl_ab : zuumtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzuumtstF_fl_sb : zuumtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzuumtstF_fl_fb : zuumtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zuumtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xzslv_all : xzslvtst xzslvtstF \
                   xzslvtst_sb xzslvtstF_sys \
                   xzslvtst_sb xzslvtstF_sl_sb \
                   xzslvtstF_fl_ab xzslvtstF_sl_ab \
                   xzslvtstF_fl_fb xzslvtstF_fl_sb

# All ATLAS libs, C interface only
xzslvtst : zslvtst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzslvtstF : zslvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzslvtst_sb : zslvtst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzslvtstF_sb : zslvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzslvtstF_sl_sb : zslvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzslvtstF_sl_ab : zslvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzslvtstF_fl_ab : zslvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzslvtstF_fl_sb : zslvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzslvtstF_fl_fb : zslvtstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zslvtstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xzllt_all : xzllttst xzllttstF \
                   xzllttst_sb xzllttstF_sys \
                   xzllttst_sb xzllttstF_sl_sb \
                   xzllttstF_fl_ab xzllttstF_sl_ab \
                   xzllttstF_fl_fb xzllttstF_fl_sb

# All ATLAS libs, C interface only
xzllttst : zllttst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzllttstF : zllttstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzllttst_sb : zllttst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzllttstF_sb : zllttstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzllttstF_sl_sb : zllttstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzllttstF_sl_ab : zllttstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzllttstF_fl_ab : zllttstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzllttstF_fl_sb : zllttstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzllttstF_fl_fb : zllttstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zllttstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xzlu_all : xzlutst xzlutstF \
                   xzlutst_sb xzlutstF_sys \
                   xzlutst_sb xzlutstF_sl_sb \
                   xzlutstF_fl_ab xzlutstF_sl_ab \
                   xzlutstF_fl_fb xzlutstF_fl_sb

# All ATLAS libs, C interface only
xzlutst : zlutst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutst.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(ATLASlib) $(LIBS)
# All ATLAS libs, F77 interface to lapack
xzlutstF : zlutstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF.o \
                   $(TESTlib) $(LAPACKlib) $(CBLASlib) $(F77BLASlib) \
                   $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, C interface
xzlutst_sb : zlutst.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutst.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# ATLAS lapack, system BLAS, F77 interface to lapack
xzlutstF_sb : zlutstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF.o \
                   $(TESTlib) $(LAPACKlib) $(BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# System lapack, system BLAS, F77 interface to lapack
xzlutstF_sl_sb : zlutstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF.o \
                   $(TESTlib) $(SLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# System lapack, ATLAS BLAS, F77 interface to lapack
xzlutstF_sl_ab : zlutstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF.o \
                   $(TESTlib) $(SLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, ATLAS BLAS, F77 interface to lapack
xzlutstF_fl_ab : zlutstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(F77BLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)
# F77lapack, system BLAS, F77 interface to lapack
xzlutstF_fl_sb : zlutstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(BLASlib) $(ATLASlib) $(LIBS)
# F77lapack, F77BLAS, F77 interface to lapack
xzlutstF_fl_fb : zlutstF.o zlapack ztstlib zl3lib \
                  zl2lib zl1lib zcblas
	$(FLINKER) $(FCLINKFLAGS) -o $@ zlutstF.o \
                   $(TESTlib) $(FLAPACKlib) $(FBLASlib) \
                   $(CBLASlib) $(ATLASlib) $(LIBS)

xzmmtst : $(INCAdir)/atlas_type.h zgemmtst.o zmmlib ztstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ zgemmtst.o \
              $(TESTlib) $(BLASlib) $(zmmobj) $(ATLASlib) $(LIBS)

xzmmtst_big : $(INCAdir)/atlas_type.h zgemmtst_big.o zmmlib \
              ztstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ zgemmtst_big.o \
                   $(TESTlib) $(BLASlib) $(zmmobj) $(ATLASlib) $(LIBS)
xzgpmmtst : $(INCAdir)/atlas_type.h zgpmmtst.o zmmlib ztstlib
	$(FLINKER) $(FCLINKFLAGS) -o $@ zgpmmtst.o \
              $(TESTlib) $(BLASlib) $(zmmobj) $(ATLASlib) $(LIBS)
zgpmmtst.o : $(mySRCdir)/gpmmtst.c $(INCSdir)/atlas_misc.h $(INCAdir)/zmm.h \
                  $(INCSdir)/atlas_lvl3.h $(INCSdir)/atlas_pkblas.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDCPLX $(mySRCdir)/gpmmtst.c
	
ztstlib_pt : ztstlib
ztstlib :
	cd $(TSTdir) ; $(MAKE) zlib

zfblas_pt : zfblaslib_pt
zfblaslib_pt :
	cd $(FBLdir) ; $(MAKE) zptlib
zfblas : zfblaslib
zfblaslib :
	cd $(FBLdir) ; $(MAKE) zlib
zcblas_pt : zcblaslib_pt
zcblaslib_pt :
	cd $(CBLdir) ; $(MAKE) zptlib
zcblas : zcblaslib
zcblaslib :
	cd $(CBLdir) ; $(MAKE) zlib

zmmlib_pt : auxlib_pt
	cd $(GMMdir) ; $(MAKE) zlib
zmmlib : auxlib
	cd $(GMMdir) ; $(MAKE) zlib
zpklib : auxlib
	cd $(BLDdir)/src/blas/pklevel3 ; $(MAKE) zlib

zl2lib_pt : zl2lib
	cd $(PTSdir)/blas/level2 ; $(MAKE) zlib
zl2lib : zl1lib auxlib
	cd $(GMVdir) ; $(MAKE) zlib
	cd $(GR1dir) ; $(MAKE) zlib
	cd $(L2Bdir) ; $(MAKE) zlib

zl3lib_pt : zl3lib zmmlib_pt
	cd $(PTSdir)/blas/level3 ; $(MAKE) zlib
zl3lib : zmmlib
	cd $(L3Bdir) ; $(MAKE) zlib

zl1lib_pt : auxlib_pt zl1lib
	cd $(PTSdir)/blas/level1 ; $(MAKE) zlib
zl1lib : auxlib
	cd $(L1Bdir) ; $(MAKE) zlvl1

zlapack :
	cd $(BLDdir)/src/lapack ; $(MAKE) zlib

xzprintblk : zprintblk.o
	$(CLINKER) -o $@ zprintblk.o $(ATLASlib)
zprintblk.o : $(INCSdir)/atlas_mv.h $(INCSdir)/atlas_r1.h \
                   $(INCAdir)/zmm.h $(mySRCdir)/printblk.c
	$(ICC) -o $@ -c $(ICCFLAGS) -DDCPLX $(mySRCdir)/printblk.c

zl1blastst_mike.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDCPLX -DATL_USEPTHREADS -DATL_MIKE $(mySRCdir)/l1blastst.c
zl2blastst_mike.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDCPLX -DATL_USEPTHREADS -DATL_MIKE $(mySRCdir)/l2blastst.c

zl3blastst_mike.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/l3blastst.c
zinvtst_mike.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/invtst.c
zinvtstF_mike.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/invtst.c
ztrtritst_mike.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/trtritst.c
ztrtritstF_mike.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/trtritst.c
zslvtst_mike.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/slvtst.c
zslvtstF_mike.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/slvtst.c
zlutst_mike.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/lutst.c
zlutstF_mike.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/lutst.c
zllttst_mike.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/llttst.c
zllttstF_mike.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/llttst.c
zuumtst_mike.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/uumtst.c
zuumtstF_mike.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/uumtst.c

zscaltst_mike.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/scaltst.c

zgemmtst_mike.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DATL_MIKE -DDCPLX $(mySRCdir)/gemmtst.c

zl1blastst_pt.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDCPLX -DATL_USEPTHREADS $(mySRCdir)/l1blastst.c
zl2blastst_pt.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDCPLX -DATL_USEPTHREADS $(mySRCdir)/l2blastst.c

zl3blastst_pt.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/l3blastst.c
zinvtst_pt.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/invtst.c
zinvtstF_pt.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/invtst.c
ztrtritst_pt.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/trtritst.c
ztrtritstF_pt.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/trtritst.c
zslvtst_pt.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/slvtst.c
zslvtstF_pt.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/slvtst.c
zlutst_pt.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/lutst.c
zlutstF_pt.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/lutst.c
zllttst_pt.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/llttst.c
zllttstF_pt.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/llttst.c
zuumtst_pt.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf) -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/uumtst.c
zuumtstF_pt.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77 -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/uumtst.c

zscaltst_pt.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/scaltst.c

zgemmtst_pt.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATL_USEPTHREADS -DDCPLX $(mySRCdir)/gemmtst.c

zl1blastst.o : $(mySRCdir)/l1blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level1.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDCPLX  $(mySRCdir)/l1blastst.c
zl2blastst.o : $(mySRCdir)/l2blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCSdir)/atlas_tst.h $(INCSdir)/atlas_level2.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDCPLX  $(mySRCdir)/l2blastst.c

zl3blastst.o : $(mySRCdir)/l3blastst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT  -DDCPLX $(mySRCdir)/l3blastst.c
zinvtst.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDCPLX $(mySRCdir)/invtst.c
zinvtstF.o : $(mySRCdir)/invtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDCPLX $(mySRCdir)/invtst.c
ztrtritst.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDCPLX $(mySRCdir)/trtritst.c
ztrtritstF.o : $(mySRCdir)/trtritst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDCPLX $(mySRCdir)/trtritst.c
zslvtst.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDCPLX $(mySRCdir)/slvtst.c
zslvtstF.o : $(mySRCdir)/slvtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDCPLX $(mySRCdir)/slvtst.c
zlutst.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDCPLX $(mySRCdir)/lutst.c
zlutstF.o : $(mySRCdir)/lutst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDCPLX $(mySRCdir)/lutst.c
zllttst.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDCPLX $(mySRCdir)/llttst.c
zllttstF.o : $(mySRCdir)/llttst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDCPLX $(mySRCdir)/llttst.c
zuumtst.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT $(intf)  -DDCPLX $(mySRCdir)/uumtst.c
zuumtstF.o : $(mySRCdir)/uumtst.c $(INCSdir)/atlas_misc.h \
                   $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h 
	$(ICC) -o $@ -c $(ICCFLAGS) -DATLCINT -DTimeF77  -DDCPLX $(mySRCdir)/uumtst.c

zscaltst.o : $(mySRCdir)/scaltst.c $(INCSdir)/atlas_misc.h \
                  $(INCSdir)/atlas_f77.h 
	$(ICC) -o $@ -c $(ICCFLAGS)  -DDCPLX $(mySRCdir)/scaltst.c

zgemmtst.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                  $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS)  -DDCPLX $(mySRCdir)/gemmtst.c

zgemmtst_big.o : $(mySRCdir)/gemmtst.c $(INCSdir)/atlas_misc.h \
                 $(INCAdir)/zmm.h $(INCSdir)/atlas_lvl3.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDCPLX -DTRUST_BIG $(mySRCdir)/gemmtst.c
c_sblas3.o : $(mySRCdir)/c_rblas3.c $(INCSdir)/cblas.h $(INCSdir)/cblas_test.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DSREAL -DF77INT_ $(mySRCdir)/c_rblas3.c

c_dblas3.o : $(mySRCdir)/c_rblas3.c $(INCSdir)/cblas.h $(INCSdir)/cblas_test.h
	$(ICC) -o $@ -c $(ICCFLAGS) -DDREAL -DF77INT_ $(mySRCdir)/c_rblas3.c

cblas_xerbla.o : $(mySRCdir)/cblas_xerbla.c
	$(ICC) $(ICCFLAGS) -o $@ -c $(mySRCdir)/cblas_xerbla.c

force_build:


$(INCAdir)/atlas_type.h : 
	cd $(SYSdir) ; $(MAKE) RunTyp
clean:
	rm -f *.o *.grd
